[dput-ng-maint] Bug#699366: dput-ng: Please, respect ~/.devscripts settings
Jakub Wilk
jwilk at debian.org
Sun May 5 12:08:36 UTC 2013
* Arno Töll <arno at debian.org>, 2013-02-02, 21:43:
>>it would be good, if dput-ng utilites will respect ~/.devscripts
>>options. For example "export DEBSIGN_KEYID=....", like debsign does.
>we cannot easily support ~/.devscripts because that's a sourced shell
>fragment.
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).
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.
--
Jakub Wilk
More information about the dput-ng-maint
mailing list