Am Dienstag, den 11.10.2005, 08:15 +0200 schrieb Ola Lundqvist:
> On Mon, Oct 10, 2005 at 10:14:52PM +0200, Daniel Leidert wrote:
[..]
> > Then there is a bug in generateRelease(). The code is as follows
> >
> > if ($gpgkey) {
> > cmdaction("$signcmd '$path/Release' '$path/Release.gpg' ".
> > "'$gpgkey' '$gpgpassfile'",
> > "Signing Release file for $path with key '$gpgkey'",
> > 3);
> > }
> >
> > But now the problem is, that if there is no gpgpassfile defined in
> > /etc/debarchiver.conf (e.g. the variable is commented out and not set to
> > ""), gpgpassfile is set to null:
> >
> > if ($gpgpassfile) {
> > $gpgpassfile = 0 if (! -f $gpgpassfile);
> > }
[..]
> Do you have a patch or do you want me to simply make the changes myself?
Pleaes check the attached patch. It works perfectly for me. It tries to
make a fallback if $gpgpassfile is NULL or if the value is a
non-existing file.
This should do.
Regards, Daniel
--- /home/dl/debarchiver.pl 2005-10-11 20:07:59.000000000 +0200
+++ /usr/bin/debarchiver 2005-10-11 20:05:46.000000000 +0200
@@ -74,9 +74,6 @@ $userconfigfile = "$ENV{HOME}/.debarchiv
$signcmd = "/usr/lib/debarchiver/signhelper";
$bzip = 0;
$gpgpassfile = "$ENV{HOME}/.gnupg/passphrase";
-if ($gpgpassfile) {
- $gpgpassfile = 0 if (! -f $gpgpassfile);
-}
###############################################################################
########################## DECLARATION ########################################
@@ -226,6 +223,21 @@ if (-e $inputconfigfile) {
}
###############################################################################
+############################# CHECKS ##########################################
+###############################################################################
+# Changelog:
+# 2005-10-11 Daniel Leidert <[EMAIL PROTECTED]>
+# Written
+
+if ($gpgpassfile) {
+ $gpgpassfile = "" if (! -f $gpgpassfile);
+}
+else {
+ $gpgpassfile = "";
+}
+
+
+###############################################################################
############################# HELP ############################################
###############################################################################
# Changelog: