Package: signing-party Version: 1.1.3-1 Severity: normal File: signing-part Tags: patch
I've run into some confusion when trying to use caff on a subkey. It first notified about it as follows: [NOTICE] Imported unexpected key; got: FINGERPRINTOFKEY I am attaching a patch against SVN trunk, which adds a hint "Are you trying to work on a subkey?". Please verify that this makes sense and if there might be a better approach on hinting, like outputting the list of expectations ($whole_fpr, $long_keyid, $short_keyid). But that might only make sense given a single key as argument maybe?! Thanks, Daniel. -- System Information: Debian Release: wheezy/sid APT prefers oneiric-updates APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500, 'oneiric-proposed'), (500, 'oneiric') Architecture: i386 (i686) Kernel: Linux 3.0.0-12-generic-pae (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages signing-party depends on: ii gnupg 1.4.11-3ubuntu1 GNU privacy guard - a free PGP rep ii libc6 2.13-20ubuntu5 Embedded GNU C Library: Shared lib ii libclass-methodmaker-per 2.18-1 Perl module for creating generic m ii libgnupg-interface-perl 0.44-1 Perl interface to GnuPG ii libmailtools-perl 2.08-1 Manipulate email in perl programs ii libmime-tools-perl 5.502-1 Perl5 modules for MIME-compliant m ii libterm-readkey-perl 2.30-4build2 A perl module for simple terminal ii libtext-template-perl 1.45-2 Text::Template perl module ii perl 5.12.4-4 Larry Wall's Practical Extraction ii qprint 1.0.dfsg.2-2 encoder and decoder for quoted-pri Versions of packages signing-party recommends: pn libgd-gd2-noxpm-perl | <none> (no description available) ii libpaper-utils 1.1.24+nmu1 library for handling paper charact ii libtext-iconv-perl 1.7-2build1 converts between character sets in ii nullmailer [mail-transp 1:1.05-1 simple relay-only mail transport a ii whiptail 0.52.11-2ubuntu8 Displays user-friendly dialog boxe Versions of packages signing-party suggests: ii imagemagick 8:6.6.0.4-3ubuntu1 image manipulation programs pn mutt <none> (no description available) pn texlive-latex-recomme <none> (no description available) pn wipe <none> (no description available) -- no debconf information
Index: caff/caff =================================================================== --- caff/caff (revision 482) +++ caff/caff (working copy) @@ -375,7 +375,7 @@ sub generate_config() { - notice("Error: \$LOGNAME is not set.\n") unless defined $ENV{'LOGNAME'}; + notice("Error: \$LOGNAME is not set.") unless defined $ENV{'LOGNAME'}; my $gecos = defined $ENV{'LOGNAME'} ? (getpwnam($ENV{LOGNAME}))[6] : undef; my $email; my @keys; @@ -1185,7 +1185,7 @@ $speced_key = $spec if $local_keyids{$spec}; }; unless ($speced_key) { - notice ("Imported unexpected key; got: $imported_key\n"); + notice ("Imported unexpected key; got: $imported_key\nAre you trying to work on a subkey?"); next; }; debug ("Imported $imported_key for $speced_key");