]> git.saurik.com Git - apt.git/commit
apt-key: warn instead of fail on unreadable keyrings
authorDavid Kalnischkies <david@kalnischkies.de>
Thu, 25 Aug 2016 10:42:36 +0000 (12:42 +0200)
committerJulian Andres Klode <jak@debian.org>
Wed, 23 Nov 2016 15:21:55 +0000 (16:21 +0100)
commitd6479b781983deba01048cf88f86f7a619cbf1b1
treecae0f1b3f9699c7f63212980bbde7544110e0c9f
parent50e78e29da6fe8cf5ff2f733f9aa0e8673ed480d
apt-key: warn instead of fail on unreadable keyrings

apt-key has inconsistent behaviour if it can't read a keyring file:
Commands like 'list' skipped silently over such keyrings while 'verify'
failed hard resulting in apt to report cconfusing gpg errors (#834973).

As a first step we teach apt-key to be more consistent here skipping in
all commands over unreadable keyrings, but issuing a warning in the
process, which is as usual for apt commands displayed at the end of the
run.

(cherry picked from commit 105503b4b470c124bc0c271bd8a50e25ecbe9133)
(removed the buffering of warnings in aptwarnings.log, as we do not
 have a cleanup function where we can cat it)

LP: #1642386
cmdline/apt-key.in
test/integration/test-apt-key