From 61b4491a4a2a9b38d95f9601b54eeef38b762d49 Mon Sep 17 00:00:00 2001 From: weasel Date: Sat, 31 Jul 2010 11:36:10 +0000 Subject: [PATCH] caff: refactor copying of command line options into global config variable git-svn-id: svn://svn.debian.org/pgp-tools/trunk@478 b513b33f-fedd-0310-b452-c3deb5f4c849 --- caff/caff | 12 +++--------- debian/changelog | 3 ++- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/caff/caff b/caff/caff index a5d4f4a..992aee6 100755 --- a/caff/caff +++ b/caff/caff @@ -1096,15 +1096,9 @@ if ($params->{'version'}) { }; usage(\*STDERR, 1) unless scalar @ARGV >= 1; -$CONFIG{'local-user'} = $params->{'local-user'} if defined $params->{'local-user'}; -$CONFIG{'no-download'} = $params->{'no-download'} if defined $params->{'no-download'}; -$CONFIG{'no-sign'} = $params->{'no-sign'} if defined $params->{'no-sign'}; - -$CONFIG{'no-mail'} = $params->{'no-mail'} if defined $params->{'no-mail'}; -$CONFIG{'mail'} = $params->{'mail'} if defined $params->{'mail'}; - -$CONFIG{'keys-from-gnupg'} = $params->{'keys-from-gnupg'} if defined $params->{'keys-from-gnupg'}; - +for my $hashkey (qw{local-user no-download no-sign no-mail mail keys-from-gnupg}) { + $CONFIG{$hashkey} = $params->{$hashkey} if defined $params->{$hashkey}; +}; # If old 'no-mail' parameter, or if the 'mail' parameter is set to 'no' if ( defined $CONFIG{'no-mail'} || ( defined $CONFIG{'mail'} && $CONFIG{'mail'} eq 'no' ) ) { diff --git a/debian/changelog b/debian/changelog index 9e40917..02fc553 100644 --- a/debian/changelog +++ b/debian/changelog @@ -34,8 +34,9 @@ signing-party (1.1.4-1) UNRELEASED; urgency=low new subkeys (for encryption), uids (for signing) or revocations. + Make importing of keys to be signed from the normal gpg optional (--keys-from-gnupg). + + refactor copying of command line options into global config variable. - -- Peter Palfrader Sat, 31 Jul 2010 13:30:54 +0200 + -- Peter Palfrader Sat, 31 Jul 2010 13:32:57 +0200 signing-party (1.1.3-1) unstable; urgency=low -- 2.39.5