Fail gracefully when post_upload_command fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dput-ng (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I have an upload target defined in an old-style dput.cf file and there a post_upload_command specified. When this post_upload_command fails, dput-ng crashes instead of printing a nice error message:
$ dput foo resteasy_
Uploading resteasy using scp to foo [...]
running allowed-
running checksum: verify checksums before uploading
running suite-mismatch: check the target distribution for common errors
running gpg: check GnuPG signatures before the upload
Not checking GPG signature due to allow_unsigned_
SCP is deprecated. Please consider upgrading to SFTP.
Uploading libresteasy-
Uploading resteasy_
Traceback (most recent call last):
File "/usr/bin/dput", line 106, in <module>
upload_
File "/usr/lib/
logger.
File "/usr/lib/
self.gen.next()
File "/usr/lib/
obj.
File "/usr/lib/
self.
File "/usr/lib/
ret
dput.exceptions
There have been errors!
[err=243]