[oe-commits] [openembedded-core] 30/91: lib/oe/gpg_sign: fix rpm signing with gpg > 2.1

git at git.openembedded.org git at git.openembedded.org
Wed Mar 1 12:56:12 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 44a44b7e582a5a654baf21829d168568481c13d9
Author: Markus Lehtonen <markus.lehtonen at linux.intel.com>
AuthorDate: Thu Feb 23 12:24:20 2017 +0200

    lib/oe/gpg_sign: fix rpm signing with gpg > 2.1
    
    We need to check the gpg version and alter its command line options
    accordingly.
    
    [YOCTO #11054]
    
    Signed-off-by: Markus Lehtonen <markus.lehtonen at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/lib/oe/gpg_sign.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/lib/oe/gpg_sign.py b/meta/lib/oe/gpg_sign.py
index 630d312..f7f96c6 100644
--- a/meta/lib/oe/gpg_sign.py
+++ b/meta/lib/oe/gpg_sign.py
@@ -32,6 +32,8 @@ class LocalSigner(object):
 
         cmd = self.rpm_bin + " --addsign --define '_gpg_name %s'  " % keyid
         cmd += "--define '_gpg_passphrase %s' " % passphrase
+        if self.gpg_version > (2,1,):
+            cmd += "--define '_gpg_sign_cmd_extra_args --pinentry-mode=loopback' "
         if self.gpg_bin:
             cmd += "--define '%%__gpg %s' " % self.gpg_bin
         if self.gpg_path:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list