Package: duplicity
Version: 0.4.3-3
Severity: normal

duplicity calls ncftgput (version 3.2.0) in the wrong way
which results in duplicity aborting with:

ncftpput: cannot open : no remote host was specified.

Other than documented ncftpput called with the -f option
and the -C options wants do be called with the hostname 
specified in the cfg file and without the hostname after the
-C option. See bug #444971.

The following patch fixes the problem:

diff -c 
/usr/share/pycentral/duplicity/site-packages/duplicity/backends.py\~ 
/usr/share/pycentral/duplicity/site-packages/duplicity/backends.py
*** /usr/share/pycentral/duplicity/site-packages/duplicity/backends.py~ 
Tue Sep 25 05:36:18 2007
--- /usr/share/pycentral/duplicity/site-packages/duplicity/backends.py  
Tue Oct  2 12:59:58 2007
***************
*** 524,529 ****
--- 524,530 ----
                        self.conn_opt = '-F'
                self.tempfile, self.tempname = 
tempfile.mkstemp("","duplicity.")
                atexit.register(os.unlink, self.tempname)
+               os.write(self.tempfile, "host %s\n" % parsed_url.host)
                os.write(self.tempfile, "user %s\n" % parsed_url.user)
                os.write(self.tempfile, "pass %s\n" % self.password)
                os.close(self.tempfile)
***************
*** 534,541 ****
                """Transfer source_path to remote_filename"""
                pu = ParsedUrl(self.url_string)
                remote_path = os.path.join (pu.path, 
remote_filename).rstrip()
!               commandline = "ncftpput %s -V -C '%s' '%s' '%s'" % \
!                                         (self.flags, pu.host, 
source_path.name, remote_path)
                self.run_command_persist(commandline)
  
        def get(self, remote_filename, local_path):
--- 535,542 ----
                """Transfer source_path to remote_filename"""
                pu = ParsedUrl(self.url_string)
                remote_path = os.path.join (pu.path, 
remote_filename).rstrip()
!               commandline = "ncftpput %s -V -C '%s' '%s'" % \
!                                         (self.flags, source_path.name, 
remote_path)
                self.run_command_persist(commandline)
  
        def get(self, remote_filename, local_path):

Christoph

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (900, 'stable'), (70, 'testing'), (50, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages duplicity depends on:
ii  gnupg                  1.4.6-2           GNU privacy guard - a free PGP rep
ii  libc6                  2.3.6.ds1-13etch2 GNU C Library: Shared libraries
ii  librsync1              0.9.7-1           Library which implements the rsync
ii  python                 2.4.4-2           An interactive high-level object-o
ii  python-central         0.5.12            register and build utility for Pyt
ii  python-gnupginterface  0.3.2-9           Python interface to GnuPG (GPG)
ii  python-pexpect         2.1-1             Python module for automating inter
ii  ncftp                  3.2.0-1           A user-friendly and well-featured

duplicity recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to