gpgv: show always webportal error on NODATA
authorDavid Kalnischkies <david@kalnischkies.de>
Sun, 8 May 2016 17:46:34 +0000 (19:46 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Sun, 8 May 2016 17:46:34 +0000 (19:46 +0200)
commit2fac0dd5a7a62b67a869cd4c71c9d09159aaa31d
tree3749636ed93b8ed2d83be2e7b7e7997abafbf492
parent39c724b4848ef8d85c8c425f982dda85f0df1277
gpgv: show always webportal error on NODATA

gpg doesn't give use a UID on NODATA, which we were "expecting" (but not
using for anything), but just an error number. Instead of collecting
these as badsigners which will trigger a "invald signature" error with
remarks like "NODATA 1" we instead adapt a message similar to the NODATA
error of a clearsigned file (which is actually not reached anymore as we
split them up, which fails with a NOSPLIT error, which uses the same
general error message).

In other words: Not a security relevant change, just a user experience
improvement as we now point them to the most likely cause of the
problem instead of saying "invalid signature" which would point them in
the direction of the archive being broken (for everyone) instead.

Closes: 823746
methods/gpgv.cc
test/integration/framework
test/integration/test-apt-key
test/integration/test-ubuntu-bug-346386-apt-get-update-paywall