[dput-ng-maint] Bug#718011: dput-ng 1.5 broke SSH uploading for me

Sebastian Ramacher sramacher at debian.org
Sun Dec 8 20:47:09 UTC 2013


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 <michael at stapelberg.de>"
> gpg:                 aka "Michael Stapelberg (RENT-A-GURU) <michael at rent-a-guru.de>"
> gpg:                 aka "Michael Stapelberg <stapelberg at debian.org>"
> 
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/dput-ng-maint/attachments/20131208/36390299/attachment.sig>


More information about the dput-ng-maint mailing list