[OE-core] [PATCH 2/5] oe/gpg_sign: add 'armor' argument to detach_sign()
Markus Lehtonen
markus.lehtonen at linux.intel.com
Wed Feb 10 14:15:56 UTC 2016
[YOCTO #9006]
Signed-off-by: Markus Lehtonen <markus.lehtonen at linux.intel.com>
---
meta/lib/oe/gpg_sign.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/meta/lib/oe/gpg_sign.py b/meta/lib/oe/gpg_sign.py
index a4f310e..16a2364 100644
--- a/meta/lib/oe/gpg_sign.py
+++ b/meta/lib/oe/gpg_sign.py
@@ -52,13 +52,15 @@ class LocalSigner(object):
bb.error('rpmsign failed: %s' % proc.before.strip())
raise bb.build.FuncFailed("Failed to sign RPM packages")
- def detach_sign(self, input_file):
+ def detach_sign(self, input_file, armor=True):
"""Create a detached signature of a file"""
- cmd = "%s --detach-sign --armor --batch --no-tty --yes " \
+ cmd = "%s --detach-sign --batch --no-tty --yes " \
"--passphrase-file '%s' -u '%s' " % \
(self.gpg_bin, self.passphrase_file, self.keyid)
if self.gpg_path:
cmd += "--homedir %s " % self.gpg_path
+ if armor:
+ cmd += "--armor "
cmd += input_file
status, output = oe.utils.getstatusoutput(cmd)
if status:
--
2.6.2
More information about the Openembedded-core
mailing list