[Pkg-gnupg-maint] Bug#630388: gnupg: `gpg --edit-key notexist' silently does nothing
Mark Wooding
mdw at distorted.org.uk
Mon Jun 13 16:47:10 UTC 2011
Package: gnupg
Version: 1.4.11-3
Severity: normal
If you try to edit a key with an unrecognized id, GPG doesn't print
anything other than its usual copyright banner, and exits zero. With
`--no-greeting', it prints nothing at all.
[ponder ~]gpg --no-greeting --edit-key notexist
[ponder ~]echo $?
0
This isn't a helpful indication that one has typed a keyid wrongly. By
contrast, `--list-keys notexist' reports
gpg: error reading key: public key not found
and exits with status 2.
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'stable-updates'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.38-2-686-bigmem (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages gnupg depends on:
ii dpkg 1.16.0.3 Debian package management system
ii gpgv 1.4.11-3 GNU privacy guard - signature veri
ii install-info 4.13a.dfsg.1-6 Manage installed documentation in
ii libbz2-1.0 1.0.5-6 high-quality block-sorting file co
ii libc6 2.13-4 Embedded GNU C Library: Shared lib
ii libreadline6 6.2-2 GNU readline and history libraries
ii libusb-0.1-4 2:0.1.12-17 userspace USB programming library
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
Versions of packages gnupg recommends:
pn gnupg-curl <none> (no description available)
ii libldap-2.4-2 2.4.25-1+b1 OpenLDAP libraries
Versions of packages gnupg suggests:
ii eog 2.30.2-1 Eye of GNOME graphics viewer progr
pn gnupg-doc <none> (no description available)
ii imagemagick 8:6.6.0.4-3+b1 image manipulation programs
ii libpcsclite1 1.7.2-2 Middleware to access a smart card
-- no debconf information
More information about the Pkg-gnupg-maint
mailing list