Debian Bug report logs -
#745735
apt: Provide meaningful exit codes for gpg failures
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#745735; Package apt.
(Thu, 24 Apr 2014 15:51:07 GMT) (full text, mbox, link).
Acknowledgement sent
to Micah Anderson <micah@debian.org>:
New Bug report received and forwarded. Copy sent to APT Development Team <deity@lists.debian.org>.
(Thu, 24 Apr 2014 15:51:07 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: apt
Version: 1.0.1
Severity: normal
Hello,
It seems like from reading the code that the gpg signature verification process doesn't
provide meaningful exit codes when bad things happen. This results in apt-get update
providing an exit code of zero, even if there was a BADSIG. It would be very useful
if we could get an exit code when these bad situations happen:
BADSIG
NO_PUBKEY
KEYEXPIRED
REVKEYSIG
NODATA
Thank you,
micah
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages apt depends on:
ii debian-archive-keyring 2012.4
ii gnupg 1.4.16-1.1
ii libapt-pkg4.12 1.0.1
ii libc6 2.18-4
ii libgcc1 1:4.9-20140411-2
ii libstdc++6 4.9-20140411-2
apt recommends no packages.
Versions of packages apt suggests:
pn apt-doc <none>
ii aptitude 0.6.10-1
ii dpkg-dev 1.17.7
ii python-apt 0.9.3.5
-- no debconf information
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Fri Jul 27 06:07:59 2018;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.