handle revoked uids in perl to get linecount right
authormyon-guest <myon-guest@b513b33f-fedd-0310-b452-c3deb5f4c849>
Sun, 21 Aug 2005 17:28:13 +0000 (17:28 +0000)
committermyon-guest <myon-guest@b513b33f-fedd-0310-b452-c3deb5f4c849>
Sun, 21 Aug 2005 17:28:13 +0000 (17:28 +0000)
git-svn-id: svn://svn.debian.org/pgp-tools/trunk@219 b513b33f-fedd-0310-b452-c3deb5f4c849

debian/changelog
gpg-key2ps/gpg-key2ps

index 226c8bf2f8fdd7ffcb89c4b2e0c881d174e32388..e5fb00f58ab27629329e43c70bd5d122baa3ac7e 100644 (file)
@@ -1,7 +1,8 @@
 signing-party (0.4.2-2) UNRELEASED; urgency=low
 
   [ Christoph Berg ]
-  *
+  * gpg-key2ps:
+     + handle revoked uids in perl to get linecount right (Closes: #320785).
 
   [ Peter Palfrader ]
   * Install caff's pgp-fixkey.
index 5b875856fd6d09b102f04db3a06790627001a374..9498e6b04bac513d23f262e80353efb99b0be9cb 100755 (executable)
@@ -165,8 +165,6 @@ if ( $revokestyle eq "grey" ) {
        print " uid\n";
        print " 0 setgray\n";
        print "} def\n";
-} elsif ( $revokestyle eq "hide" ) {
-       print "/revuid {} def\n";
 } elsif ( $revokestyle eq "note" ) {
        print "/revuid {\n";
        print " 50 y moveto (uid) show\n";
@@ -223,7 +221,9 @@ while(<GPG>) {
        # user ids
        s/^uid:[^:r]*:[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:([^:]*):.*/     ($1) uid/;
        # revoked user id
-       s/^uid:r[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:([^:]*):.*/     ($1) revuid/;
+       if (s/^uid:r[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:([^:]*):.*/ ($1) revuid/) {
+               next if $revokestyle eq "hide";
+       }
        # subkey
        s/^sub:[^:]*:([^:]*):([0-9]*):.{8,8}(.{8,8}):([^:]*):[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:.*/    ($4) ($3) $2 ($1) sbk/;
        $numlines++;
@@ -237,6 +237,8 @@ unless ($started) {
        exit 1;
 }
 
+print STDERR "numlines $numlines\n";
+
 # output the remaining postscript
 print <<EOF;
 } def