With the patch the allowed_distributions will be tested first:

>  % dput ftp-eu *changes
> Traceback (most recent call last):
>   File "/usr/bin/dput", line 11, in <module>
>     load_entry_point('dput==1.0.1+nmu1', 'console_scripts', 'execute-dput')()
>   File "/usr/share/dput/dput/dput.py", line 1020, in main
>     config, check_only, check_version, unsigned_upload, debug)
>   File "/usr/share/dput/dput/dput.py", line 362, in verify_files
>     % (distribution, host))
> dput.helper.dputhelper.DputUploadFatalException: Error: uploading files for 
> distribution UNRELEASED to ftp-eu not allowed.

Hmm - i'm not really a friend of backtraces and such things - this is a
handled case and dput should terminate nicely with exactly this error
message:

> Error: uploading files for distribution UNRELEASED to ftp-eu not allowed.

A traceback is imho some kind of overkill.

Cheers Alf

Reply via email to