summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@gentoo.org>2006-01-06 13:53:47 +0000
committerGunnar Wrobel <wrobel@gentoo.org>2006-01-06 13:53:47 +0000
commit4fe0d4ff51fd4d9dd63c6a273be61d315b90a039 (patch)
treee867e02f96bd12679341c87ac00f9221573b7dbc
parentTried to add the url library (diff)
downloadmisc-4fe0d4ff51fd4d9dd63c6a273be61d315b90a039.tar.gz
misc-4fe0d4ff51fd4d9dd63c6a273be61d315b90a039.tar.bz2
misc-4fe0d4ff51fd4d9dd63c6a273be61d315b90a039.zip
Minor update to the gpg-update script
svn path=/local/; revision=614
-rwxr-xr-xz-distfiles/scripts-gw/gpg-update4
1 files changed, 2 insertions, 2 deletions
diff --git a/z-distfiles/scripts-gw/gpg-update b/z-distfiles/scripts-gw/gpg-update
index 23e73af..335d455 100755
--- a/z-distfiles/scripts-gw/gpg-update
+++ b/z-distfiles/scripts-gw/gpg-update
@@ -94,12 +94,12 @@ foreach my $keypair (keys %expired)
print "Expired keypair (" . $keypair . ") will be regenerated!\n";
print "--------------------------------------------------------\n";
$info = $expired{$keypair}->[0]->{UIDs}->[0]->{UID};
- ($name = $info) =~ s/\s*\(.*//;
+ ($name = $info) =~ s/\s*<.*//;
($mail = $info) =~ s/.*<(.+@.+)>/$1/;
print "User: " . $name . "\n";
print "Mail: <" . $mail . ">\n";
$pass = promptUser("New passphrase for this key");
- $status = $gpg->keygen($name, $mail, 'ELG-E', 1024, '90', $pass);
+ $status = $gpg->keygen($name, $mail, 'ELG-E', 2048, '90', $pass);
while (<$status>)
{
$pass = $_;