[Pgp-tools-commit] r276 - in trunk: caff debian

Christoph Berg myon at costa.debian.org
Sun Apr 30 10:27:35 UTC 2006


Author: myon
Date: 2006-04-30 10:27:34 +0000 (Sun, 30 Apr 2006)
New Revision: 276

Modified:
   trunk/caff/caff
   trunk/debian/changelog
Log:
  + Make local-user a config option, thanks to Michael C. Toren for the
    patch (Closes: #361316).

Modified: trunk/caff/caff
===================================================================
--- trunk/caff/caff	2006-04-30 09:35:05 UTC (rev 275)
+++ trunk/caff/caff	2006-04-30 10:27:34 UTC (rev 276)
@@ -203,6 +203,10 @@
 Don't export UIDs by default, on which your latest signature is older
 than this age.  Default: B<24*60*60> (i.e. one day).
 
+=item B<local-user> [string]
+
+Select the key that is used for signing, in case you have more than one key.
+
 =head2 Mail settings
 
 =item B<mail> [boolean]
@@ -891,13 +895,18 @@
 };
 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-mail'}     = $params->{'no-mail'}     if defined $params->{'no-mail'};
+$CONFIG{'mail'}        = $params->{'mail'}        if defined $params->{'mail'};
+$CONFIG{'no-sign'}     = $params->{'no-sign'}     if defined $params->{'no-sign'};
+push @{$CONFIG{'key-files'}}, @{$params->{'key-files'}} if defined $params->{'key-files'};
 
-
-if ($params->{'local-user'}) {
-	$USER = $params->{'local-user'};
+if ($CONFIG{'local-user'}) {
+	$USER = $CONFIG{'local-user'};
 	$USER =~ s/^0x//i;
 	unless ($USER =~ /^([A-F0-9]{8}|[A-F0-9]{16}|[A-F0-9]{40})$/i) {
-		print STDERR "-u $USER is not a keyid.\n";
+		print STDERR "Local-user $USER is not a keyid.\n";
 		usage(\*STDERR, 1);
 	};
 	$USER = uc($USER);
@@ -916,13 +925,6 @@
 	push @KEYIDS, uc($keyid);
 };
 
-$CONFIG{'no-download'} = $params->{'no-download'} if defined $params->{'no-download'};
-$CONFIG{'no-mail'}     = $params->{'no-mail'}     if defined $params->{'no-mail'};
-$CONFIG{'mail'}        = $params->{'mail'}        if defined $params->{'mail'};
-$CONFIG{'no-sign'}     = $params->{'no-sign'}     if defined $params->{'no-sign'};
-push @{$CONFIG{'key-files'}}, @{$params->{'key-files'}} if defined $params->{'key-files'};
-
-
 #################
 # import own keys
 #################

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2006-04-30 09:35:05 UTC (rev 275)
+++ trunk/debian/changelog	2006-04-30 10:27:34 UTC (rev 276)
@@ -3,12 +3,14 @@
   * caff:
     + Try hostname without -f first to be compatible with BSD
       (Closes: #356830).
+    + Make local-user a config option, thanks to Michael C. Toren for the
+      patch (Closes: #361316).
     + Bump copyright, use URL in User-Agent header.
   * pgp-clean:
     + Import caff's getopt handling.
     + Add option to allow exporting subkeys (Closes: #359698).
 
- -- Christoph Berg <myon at debian.org>  Sun, 30 Apr 2006 11:33:23 +0200
+ -- Christoph Berg <myon at debian.org>  Sun, 30 Apr 2006 12:25:27 +0200
 
 signing-party (0.4.5-1) unstable; urgency=low
 




More information about the Pgp-tools-commit mailing list