|
@@ -12,12 +12,14 @@ class LocalSigner(object):
|
|
|
self.gpg_path = d.getVar('GPG_PATH', True)
|
|
|
self.rpm_bin = bb.utils.which(os.getenv('PATH'), "rpm")
|
|
|
|
|
|
- def export_pubkey(self, output_file, keyid):
|
|
|
+ def export_pubkey(self, output_file, keyid, armor=True):
|
|
|
"""Export GPG public key to a file"""
|
|
|
- cmd = '%s --batch --yes --export --armor -o %s ' % \
|
|
|
+ cmd = '%s --batch --yes --export -o %s ' % \
|
|
|
(self.gpg_bin, output_file)
|
|
|
if self.gpg_path:
|
|
|
cmd += "--homedir %s " % self.gpg_path
|
|
|
+ if armor:
|
|
|
+ cmd += "--armor "
|
|
|
cmd += keyid
|
|
|
status, output = oe.utils.getstatusoutput(cmd)
|
|
|
if status:
|