commit:     1837b14d69ed663f62c33ba258b531fd41f8adb7
Author:     Sheng Yu <syu.os <AT> protonmail <DOT> com>
AuthorDate: Mon Jan 24 01:56:46 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jan 24 02:07:11 2022 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=1837b14d

quickpkg: check gpg status

Closes: https://bugs.gentoo.org/831944
Signed-off-by: Sheng Yu <syu.os <AT> protonmail.com>
Closes: https://github.com/gentoo/portage/pull/784
Signed-off-by: Sam James <sam <AT> gentoo.org>

 bin/quickpkg | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bin/quickpkg b/bin/quickpkg
index 7733bc833..27dda85ed 100755
--- a/bin/quickpkg
+++ b/bin/quickpkg
@@ -285,8 +285,9 @@ def quickpkg_main(options, args, eout):
                portage.settings.features.remove('xattr')
                portage.settings.lock()
 
-       gpg = GPG(portage.settings)
-       gpg.unlock()
+       if portage.settings.get("BINPKG_GPG_SIGNING_KEY", None):
+               gpg = GPG(portage.settings)
+               gpg.unlock()
 
        infos = {}
        infos["successes"] = []

Reply via email to