Hi,

On Sun, 2007-09-30 at 00:25 +0100, martin f krafft wrote:
[...]
> It seems that debsign ignores $DEBSIGN_KEYID. In general, I'd say
> that if that variable is set, it should be used instead of trying to
> obtain the key ID to be used from the contents of the file to be
> used. Rationale: noone working on Debian has two keys, really.
> 
> On my machine, I have two keys, both have the @d.o ID on them.
> When I sign a file by [EMAIL PROTECTED], the wrong key is getting chosen,
> even though $DEBSIGN_KEYID points to the right key.

With a couple of exceptions, devscripts uses configuration file
variables and ignores the contents of the environment. debsign's man
page currently specifies:

               -kkeyid
                      Specify the key ID to be used for signing; overrides any 
-m  and
                      -e options.
        [...]
        CONFIGURATION VARIABLES
               The  two configuration files /etc/devscripts.conf and 
~/.devscripts are
               sourced in that order to set  configuration  variables.   
Command  line
               options  can be used to override configuration file settings.  
Environ‐
               ment variable settings are ignored for  this  purpose.   The  
currently
               recognised variables are:
        [...]
              DEBSIGN_KEYID
                      And this is the -k option.
        

Reading through the changelog indicates that this has been the case (and
the environment variable ignored) since devscripts 2.6.90 in early 2002.
Certainly the version of the script imported in to SVN in July 2004
exhibits the current behaviour.

Regards,

Adam


Reply via email to