Merge lp:~fenisilius/duplicity/acd_init_mkdir into lp:~duplicity-team/duplicity/0.8-series

Proposed by Ignacio Quezada
Status: Merged
Merge reported by: Kenneth Loafman
Merged at revision: not available
Proposed branch: lp:~fenisilius/duplicity/acd_init_mkdir
Merge into: lp:~duplicity-team/duplicity/0.8-series
Diff against target: 141 lines (+75/-0) (has conflicts)
5 files modified
CHANGELOG (+28/-0)
Changelog.GNU (+24/-0)
duplicity/backends/acdclibackend.py (+10/-0)
po/duplicity.pot (+4/-0)
testing/gnupg/gpg.conf (+9/-0)
Text conflict in CHANGELOG
Text conflict in Changelog.GNU
Text conflict in po/duplicity.pot
Conflict adding file testing/gnupg/gpg.conf.  Moved existing file to testing/gnupg/gpg.conf.moved.
To merge this branch: bzr merge lp:~fenisilius/duplicity/acd_init_mkdir
Reviewer Review Type Date Requested Status
duplicity-team Pending
Review via email: mp+302226@code.launchpad.net

Description of the change

After the acd_cli init is done, and the keys are set, duplicity can't create directories on the remote server.

A more natural use would be to let duplicity to create the remote folder, this patch tries to help on that.

To post a comment you must log in.
Revision history for this message
Ignacio Quezada (fenisilius) wrote :

If approved, it probably could be merged into the 0.7 tree as well.

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :

I merged in the changes to acdclibackend.py only. These went into 0.7 and 0.8.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CHANGELOG'
2--- CHANGELOG 2016-07-31 12:18:43 +0000
3+++ CHANGELOG 2016-08-07 21:03:12 +0000
4@@ -1,3 +1,4 @@
5+<<<<<<< TREE
6 New in v0.8.00 (2016/07/??)
7 ---------------------------
8 * Merged in lp:~aaron-whitehouse/duplicity/remove-python26
9@@ -16,6 +17,30 @@
10 - merge fixes setsid usage in functional testing.
11
12
13+=======
14+New in v0.7.10 (2016/08/??)
15+---------------------------
16+* Merged in lp:~mwilck/duplicity/0.7-series
17+ - Speedup of path_matches_glob() by about 8x. See
18+ https://code.launchpad.net/~mwilck/duplicity/0.7-series/+merge/301332
19+ for more details.
20+* Remove -w from setsid in functional tests.
21+* Fixed conflict in merge from Martin Wilck and applied
22+ - https://code.launchpad.net/~mwilck/duplicity/0.7-series/+merge/301492
23+ - merge fixes setsid usage in functional testing.
24+
25+
26+New in v0.7.09 (2016/07/24)
27+---------------------------
28+* Fixed bug #1600692 with patch from Wolfgang Rohdewald
29+ - Allow symlink to have optional trailing slash during verify.
30+* Merged in lp:~aaron-whitehouse/duplicity/07-fix_deja_dup_error_on_locked_files
31+ - Revert log.Error to log.Warn, as it was prior to the merge in rev 1224,
32+ as this was affecting other applications (e.g. deja dup; Bug #1605939).
33+* Merged in lp:~duplicity-team/duplicity/po-updates
34+
35+
36+>>>>>>> MERGE-SOURCE
37 New in v0.7.08 (2016/07/02)
38 ---------------------------
39 * Merged in lp:~noizyland/duplicity/fix_azurebackend_typo
40@@ -71,6 +96,9 @@
41 * Fixed bug #1570293 duplicity is very slow due to excessive fsync
42 - removed flush() after write.
43 - revert to previous version
44+* Merged in lp:~aaron-whitehouse/duplicity/07-fix_deja_dup_error_on_locked_files
45+ - Revert log.Error to log.Warn, as it was prior to the merge in rev 1224,
46+ as this was affecting other applications (e.g. deja dup; Bug #1605939).
47
48
49 New in v0.7.07 (2016/04/10)
50
51=== modified file 'Changelog.GNU'
52--- Changelog.GNU 2016-07-31 12:18:43 +0000
53+++ Changelog.GNU 2016-08-07 21:03:12 +0000
54@@ -1,3 +1,4 @@
55+<<<<<<< TREE
56 2016-07-31 Kenneth Loafman <kenneth@loafman.com>
57
58 * Fixed conflict in merge from Martin Wilck and applied
59@@ -17,6 +18,29 @@
60 - Revert log.Error to log.Warn, as it was prior to the merge in rev 1224,
61 as this was affecting other applications (e.g. deja dup; Bug #1605939).
62
63+=======
64+2016-07-31 Kenneth Loafman <kenneth@loafman.com>
65+
66+ * Fixed conflict in merge from Martin Wilck and applied
67+ - https://code.launchpad.net/~mwilck/duplicity/0.7-series/+merge/301492
68+ - merge fixes setsid usage in functional testing.
69+
70+2016-07-28 Kenneth Loafman <kenneth@loafman.com>
71+
72+ * Merged in lp:~mwilck/duplicity/0.7-series
73+ - Speedup of path_matches_glob() by about 8x. See
74+ https://code.launchpad.net/~mwilck/duplicity/0.7-series/+merge/301332
75+ for more details.
76+ * Remove -w from setsid in functional tests.
77+
78+2016-07-24 Kenneth Loafman <kenneth@loafman.com>
79+
80+ * Merged in lp:~aaron-whitehouse/duplicity/07-fix_deja_dup_error_on_locked_files
81+ - Revert log.Error to log.Warn, as it was prior to the merge in rev 1224,
82+ as this was affecting other applications (e.g. deja dup; Bug #1605939).
83+ * Prep for 0.7.09
84+
85+>>>>>>> MERGE-SOURCE
86 2016-07-20 Kenneth Loafman <kenneth@loafman.com>
87
88 * Fixed bug #1600692 with patch from Wolfgang Rohdewald
89
90=== modified file 'duplicity/backends/acdclibackend.py'
91--- duplicity/backends/acdclibackend.py 2016-06-28 21:03:46 +0000
92+++ duplicity/backends/acdclibackend.py 2016-08-07 21:03:12 +0000
93@@ -59,6 +59,16 @@
94
95 self.subprocess_popen(self.acd_cmd + " sync")
96
97+ # Initialize remote directory
98+ remote_path = urllib.unquote(self.parsed_url.path.replace('///', '/')).rstrip()
99+ commandline = self.acd_cmd + " ls '%s'" % (remote_path)
100+ try:
101+ self.subprocess_popen(commandline)
102+ except BackendException as e:
103+ if e.code == 50: # Remote directory not there, create a new one
104+ commandline = self.acd_cmd + " mkdir '%s'" % remote_path
105+ self.subprocess_popen(commandline)
106+
107 def _put(self, source_path, remote_filename=None):
108 """Transfer source_path to remote_filename"""
109 if not remote_filename:
110
111=== modified file 'po/duplicity.pot'
112--- po/duplicity.pot 2016-07-28 14:44:44 +0000
113+++ po/duplicity.pot 2016-08-07 21:03:12 +0000
114@@ -8,7 +8,11 @@
115 msgstr ""
116 "Project-Id-Version: PACKAGE VERSION\n"
117 "Report-Msgid-Bugs-To: Kenneth Loafman <kenneth@loafman.com>\n"
118+<<<<<<< TREE
119 "POT-Creation-Date: 2016-07-28 09:22-0500\n"
120+=======
121+"POT-Creation-Date: 2016-07-31 07:02-0500\n"
122+>>>>>>> MERGE-SOURCE
123 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
124 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
125 "Language-Team: LANGUAGE <LL@li.org>\n"
126
127=== added file 'testing/gnupg/gpg.conf'
128--- testing/gnupg/gpg.conf 1970-01-01 00:00:00 +0000
129+++ testing/gnupg/gpg.conf 2016-08-07 21:03:12 +0000
130@@ -0,0 +1,9 @@
131+# gpg2 doesn't try all secrets by default, so add this option
132+# Otherwise the tests with hidden encryption key will fail
133+try-all-secrets
134+
135+# gpg2 2.1.13 has a bug that prevents the line above from working
136+# (https://bugs.gnupg.org/gnupg/issue1985)
137+# Uncomment the line below if you have gnupg2 2.1.13
138+# (but that line will break gpg 1.x, so we can't use it by default)
139+#try-secret-key 96B629431B77DC52B1917B40839E6A2856538CCF
140
141=== renamed file 'testing/gnupg/gpg.conf' => 'testing/gnupg/gpg.conf.moved'

Subscribers

People subscribed via source and target branches