Package: signing-party
Version: 0.4.4-2
Severity: normal
Tags: patch

Hi,
Apparently parts of my multi-signing-keyid patches were merged, but an
essential part is missing. Here's a patch which adds it back.
If you have two keyids defined for signing in your caffrc, it will now
run gpg twice to sign with both of them. The signatures of both should
then be included with the signed key.
--- /usr/bin/caff       2005-09-11 23:56:56.000000000 +0200
+++ .bin/caff   2005-10-13 23:26:59.000000000 +0200
@@ -999,18 +999,20 @@
 unless ($CONFIG{'no-sign'}) {
        info("Sign the following keys according to your policy, then exit gpg 
with 'save' after signing each key");
        for my $keyid (@keyids_ok) {
-               my @command;
-               push @command, $CONFIG{'gpg-sign'};
-               push @command, '--local-user', $USER if (defined $USER);
-               push @command, "--homedir=$GNUPGHOME";
-               push @command, '--secret-keyring', $CONFIG{'secret-keyring'};
-               push @command, '--no-auto-check-trustdb';
-               push @command, '--trust-model=always';
-               push @command, '--edit', $keyid;
-               push @command, 'sign';
-               push @command, split ' ', $CONFIG{'gpg-sign-args'} || "";
-               print join(' ', @command),"\n";
-               system (@command);
+               for my $mykey (@{$CONFIG{'keyid'}}) {
+                       my @command;
+                       push @command, $CONFIG{'gpg-sign'};
+                       push @command, '--local-user', $mykey;
+                       push @command, "--homedir=$GNUPGHOME";
+                       push @command, '--secret-keyring', 
$CONFIG{'secret-keyring'};
+                       push @command, '--no-auto-check-trustdb';
+                       push @command, '--trust-model=always';
+                       push @command, '--edit', $keyid;
+                       push @command, 'sign';
+                       push @command, split ' ', $CONFIG{'gpg-sign-args'} || 
"";
+                       print join(' ', @command),"\n";
+                       system (@command);
+               };
        };
 };
 

Reply via email to