gnupg: 'gnupg-verify*' returns a status symbol.
authorLudovic Courtès <ludo@gnu.org>
Fri, 20 Dec 2019 20:49:43 +0000 (21:49 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 20 Dec 2019 21:06:05 +0000 (22:06 +0100)
commitf94f9d67e65975724ee5b5cbc936c0895a258685
tree6f49826abce986fa03ae886ad120c42d7136cef6
parent1101c73c7fb2e0dbba00b45c05bf36ae08bdb6f2
gnupg: 'gnupg-verify*' returns a status symbol.

This allows callers to distinguish between signature verification
failure and missing key.

* guix/gnupg.scm (gnupg-receive-keys): Return true on success.
(gnupg-verify*): Check return value of 'gnupg-receive-keys'.  Return two
values, the first one being a symbol.
* guix/upstream.scm (download-tarball): Get the two return values of
'gnupg-verify*', and match on the first one.
* gnu/packages/bash.scm (download-patches): Check the first return value
of 'gnupg-verify*'.
gnu/packages/bash.scm
guix/gnupg.scm
guix/upstream.scm