Patrick Schoenfeld wrote:
> Hi,
> 
> On Mon, Aug 31, 2009 at 01:32:38AM +0200, Emilio Pozuelo Monfort wrote:
>> Package: devscripts
>> Version: 2.10.53
>> Severity: normal
>>
>> Hi,
>>
>> I have DEBRELEASE_DEBS_DIR set in ~/.devscripts to "../build-area", to make
>> it easier to sign changes file when working with svn-buildpackage &
>> cowbuilder.
>>
>> However there are cases when I want to sign a changes file but it's not
>> in ../build-area. I'd expect the following command to work
>>
>> $ debsign foo.changes
>>
>> However it complains that ../build-area doesn't exist. Simply creating it
>> (and leaving it empty) will make it work.
> 
> Well, according to the manpage the directive you've set "specifies  the
> directory in which to look for the .changes and .dsc files", so when you
> type debsign foo.changes it is searching for it in ../build-area. So its
> actually doing the right thing.

I don't think so.
The manpage says:

       If a .changes, .dsc or .commands file is specified, it is signed,
otherwise, debian/changelog is parsed to determine the name of the .changes file
to look for in the parent directory.

       --debs-dir DIR
              Look for the .changes and .dsc files in directory DIR instead of
the parent of the source directory.  This should either be an absolute path or
relative to the top of the source directory.



So it will look in DEBRELEASE_DEBS_DIR *if* I don't specify a changes file, but
if I do, it will ignore DEBRELEASE_DEBS_DIR and just sign the file I say (in the
dir I say). That's what I understand at least, and it's what it does if I create
an empty directory:



emi...@saturno:~/deb/sponsor/fische$ ls fische_3.0.3-1_i386.changes
fische_3.0.3-1_i386.changes
emi...@saturno:~/deb/sponsor/fische$ ls ..
fische
emi...@saturno:~/deb/sponsor/fische$ debsign fische_3.0.3-1_i386.changes
debsign: config file specified DEBRELEASE_DEBS_DIR directory ../build-area does
not exist!
emi...@saturno:~/deb/sponsor/fische$ mkdir ../build-area
emi...@saturno:~/deb/sponsor/fische$ debsign fische_3.0.3-1_i386.changes
 signfile fische_3.0.3-1.dsc 4A08B2FE

Necesita una frase contraseƱa para desbloquear la clave secreta
del usuario: "Emilio Pozuelo Monfort <[email protected]>"
clave DSA de 1024 bits, ID 4A08B2FE, creada el 2007-10-05


 signfile fische_3.0.3-1_i386.changes 4A08B2FE

Necesita una frase contraseƱa para desbloquear la clave secreta
del usuario: "Emilio Pozuelo Monfort <[email protected]>"
clave DSA de 1024 bits, ID 4A08B2FE, creada el 2007-10-05


Successfully signed dsc and changes files
emi...@saturno:~/deb/sponsor/fische$ ls ../build-area/
emi...@saturno:~/deb/sponsor/fische$



So it seems to me the problem is that when I specify a changes/dsc file to sign,
it won't use DEBRELEASE_DEBS_DIR... so it shouldn't check that it exists either.

Cheers,
Emilio

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to