diff options
| author | Thomas Wiebe | 2011-08-18 22:04:28 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2011-08-18 22:58:12 -0700 |
| commit | 5c82e592e94155fb33ceb779ef33cb9635ea0bc3 (patch) | |
| tree | 20e4cdb8593fddd6764ee1fc4a218bedb7715046 | |
| parent | c9298ddd710649525caf6a076d1a620ffb702259 (diff) | |
| download | homebrew-5c82e592e94155fb33ceb779ef33cb9635ea0bc3.tar.bz2 | |
duplicity: ssh-backend fix backported
back-ported fix to ssh-backend. fixed in upstream for 0.6.15.
for issue-details see https://bugs.launchpad.net/duplicity/+bug/823556
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/duplicity.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/duplicity.rb b/Library/Formula/duplicity.rb index ece203ebf..67ef8e5d3 100644 --- a/Library/Formula/duplicity.rb +++ b/Library/Formula/duplicity.rb @@ -24,4 +24,26 @@ class Duplicity < Formula ln_s "#{libexec}/duplicity.py", "#{bin}/duplicity" ln_s "#{libexec}/rdiffdir", "#{bin}/rdiffdir" end + + def patches + # back-ported fix to ssh-backend. fixed in upstream for 0.6.15. + # for issue-details see https://bugs.launchpad.net/duplicity/+bug/823556 + DATA + end end + + +__END__ +--- 0.6.14/src/backends/sshbackend.py 2011-06-13 14:24:27 +0000 ++++ 0.6.15-pre/src/backends/sshbackend.py 2011-08-17 14:21:15 +0000 +@@ -278,6 +278,10 @@ + be distinguished from the file boundaries. + """ + dirs = self.remote_dir.split(os.sep) ++ if len(dirs) > 0: ++ if not dirs[0] : ++ dirs = dirs[1:] ++ dirs[0]= '/' + dirs[0] + mkdir_commands = []; + for d in dirs: + mkdir_commands += ["mkdir \"%s\"" % (d)] + ["cd \"%s\"" % (d)] |
