Control: tags -1 + pending On 2013-07-27 22:00:56, Michael Stapelberg wrote: > Package: dput-ng > Version: 1.5 > Severity: normal > > $ dput init-system-helpers_1.7\~bpo70+1_amd64.changes > Uploading init-system-helpers using sftp to ftp-master (host: > ssh.upload.debian.org; directory: /srv/upload.debian.org/UploadQueue/) > running allowed-distribution: check whether a local profile permits uploads > to the target distribution > running protected-distribution: warn before uploading to distributions where > a special policy applies > running checksum: verify checksums before uploading > running suite-mismatch: check the target distribution for common errors > running check-debs: makes sure the upload contains a binary package > running gpg: check GnuPG signatures before the upload > gpg: Signature made 2013-07-27T21:55:28 CEST using RSA key ID 4AC8EE1D > gpg: Good signature from "Michael Stapelberg <[email protected]>" > gpg: aka "Michael Stapelberg (RENT-A-GURU) > <[email protected]>" > gpg: aka "Michael Stapelberg <[email protected]>" > > IdentityFile = ['/home/michael/.ssh/debian'] > Traceback (most recent call last): > File "/usr/bin/dput", line 92, in <module> > upload_package(changes, args) > File "/usr/lib/python2.7/dist-packages/dput/uploader.py", line 316, in > invoke_dput > simulate=args.simulate) as obj: > File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__ > return self.gen.next() > File "/usr/lib/python2.7/dist-packages/dput/uploader.py", line 169, in > uploader > obj.initialize() > File "/usr/lib/python2.7/dist-packages/dput/uploaders/sftp.py", line 148, > in initialize > pkey = os.path.expanduser(o['identityfile']) > File "/usr/lib/python2.7/posixpath.py", line 261, in expanduser > if not path.startswith('~'): > AttributeError: 'list' object has no attribute 'startswith' > > This modification in line 147 of > /usr/lib/python2.7/dist-packages/dput/uploaders/sftp.py fixes the issue > for me for now, but might not be correct in all cases: > > - pkey = os.path.expanduser(o['identityfile']) > + pkey = os.path.expanduser(o['identityfile'][0])
I've pushed a fix for this bug to the git repository. Regards -- Sebastian Ramacher
signature.asc
Description: Digital signature

