[dput-ng-maint] Bug#710150: does not accept multiple changes files

Arno Töll arno at debian.org
Tue May 28 16:32:37 UTC 2013


Hi Thijs,

On 28.05.2013 18:01, Thijs Kinkhorst wrote:
> 
> thijs at incagijs:~/u5$ dput --help
> usage: dput [-h] [-d] [-c FILE] [-D] [-e DAYS] [-F] [-f] [-l] [-U] [-o] [-P]
>             [-s] [-u] [-v] [-V]
>             [HOST] CHANGES-FILE [CHANGES-FILE ...]
> 

you are correct. This works. The problem is, you did not give a [HOST]
positional. So our argument parser does not know that your additional
positional argument  is a [CHANGES-FILE] and not a [HOST]. Hence it
treats it a HOST.

If you did dput ftp-master *.changes

it would work again.


That's a UI ambiguity we have to cope with because we claim to be API
compatible to dput. You don't want to know what dput does to resolve
this ambiguity by using a heuristic. We are unsure how to address this
properly. We basically have three choices:

a) don't support multiple changes files
b) make either positional a switch taking arguments and thus breaking
the command line compatibility with dput.
c) implement the same heuristic as dput and die a little bit inside.

None of this sounds very appealing, but we'll think about it.

-- 
with kind regards,
Arno Töll
IRC: daemonkeeper on Freenode/OFTC
GnuPG Key-ID: 0x9D80F36D

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/dput-ng-maint/attachments/20130528/22d3e501/attachment.pgp>


More information about the dput-ng-maint mailing list