[dput-ng-maint] Bug#699366: dput-ng: Please, respect ~/.devscripts settings

Christoph Berg myon at debian.org
Wed Sep 24 20:14:17 UTC 2014


Re: Jakub Wilk 2013-05-05 <20130505120836.GA6885 at jwilk.net>
> Actually .devscripts syntax is a strict subset of shell syntax, which was
> designed to be easily parsable by software not written in shell. (For
> example, many devscripts programs are written in Perl).

Those perl programs do very ugly shell calls to do the parsing...

That said, it would be good enough to just read the file and look for
^\s*DEBSIGN_KEYID=(\S+)

> Here's what a comment of /etc/devscripts.conf reads:
> 
> # This file is sourced by /bin/bash, and should only contain
> # comment lines (beginning with a '#'), and lines of the form
> # VARIABLE=value
> # The value must be quoted if there are spaces in it.
> # Variables corresponding to switches (on/off; yes/no) must take
> # one of the values 'yes' or 'no'.
> # The variable names are all of the form PROGNAME_VARNAME,
> # or DEVSCRIPTS_VARNAME if they are more generally applicable.
> 
> >It's somewhat unfeasible to interpret and parse that in a third party
> >Python
> 
> If you wanted, you could easily parse it with the shlex module.
> 
> >script which is not (directly) related to devscripts.
> 
> Now, this is a real reason not to parse this file. dput-ng is not a part of
> devscripts, so it has no business it reading devscripts' configuration file.

I don't see a problem here. dput-ng shouldn't modify the file, but
just reading it wouldn't do any harm.

Also, why not just defer the signing to debsign? No doing that sounds
just like asking for extra work. And don't tell me there's people
uploading things that don't have devscripts installed anyway...

So far my dput-ng experience was pretty disappointing :( (See also
#741966)

Christoph
-- 
cb at df7cb.de | http://www.df7cb.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/dput-ng-maint/attachments/20140924/1713e724/attachment.sig>


More information about the dput-ng-maint mailing list