Skip to contentSkip to conversation

Bugfixes to package signing

PATCH New Markus Lehtonen 1 participant 3 messages Feb 8, 2016

lore
Share & tools
lore
#0 lore raw

cover Bugfixes to package signing

This patchset contains two small bugfixes to rpm package and package feed signing.

Markus Lehtonen (2):
oe/gpg_sign: fix incorrect variable name sign_package_feed.bbclass: fix task dependencies

 meta/classes/sign_package_feed.bbclass | 1 +
 meta/lib/oe/gpg_sign.py                | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.6.2
#1 lore raw

PATCH 1/2 oe/gpg_sign: fix incorrect variable name

Prevents crash in signing if GPG_PATH is defined.

---
 meta/lib/oe/gpg_sign.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oe/gpg_sign.py +1 -1
index 55abad8..821787e 100644
@@ -58,7 +58,7 @@ class LocalSigner(object):
                   "--passphrase-file '%s' -u '%s' " % \
                   (self.gpg_bin, self.passphrase_file, self.keyid)
         if self.gpg_path:
-            gpg_cmd += "--homedir %s " % self.gpg_path
+            cmd += "--homedir %s " % self.gpg_path
         cmd += input_file
         status, output = oe.utils.getstatusoutput(cmd)
         if status:
Signature · 1 line
2.6.2
#2 lore raw

PATCH 2/2 sign_package_feed.bbclass: fix task dependencies

In reply to Markus Lehtonen

This dependency was already added to sign_rpm.bbclass. However, the same dep needs to be added to sign_package_feed.bbclass, too, to cover the case where rpm signing is disabled but package feed signing is enabled.

---
 meta/classes/sign_package_feed.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/sign_package_feed.bbclass +1 -0
index d5df8af..63ca02f 100644
@@ -35,3 +35,4 @@ python () {
 }
 
 do_package_index[depends] += "signing-keys:do_export_public_keys"
+do_rootfs[depends] += "signing-keys:do_export_public_keys"
Signature · 1 line
2.6.2