[OE-core] [PATCH 1/2] signing-keys: Create destination path for exported keys
Konrad Scherer
konrad.scherer at windriver.com
Thu Dec 10 16:44:41 UTC 2015
From: Konrad Scherer <Konrad.Scherer at windriver.com>
When testing the do_export_public_keys function using
bitbake -c do_export_public_keys signing-keys
the destination path for the exported keys does not exist
and the gpg export call fails.
Signed-off-by: Konrad Scherer <Konrad.Scherer at windriver.com>
---
meta/recipes-core/meta/signing-keys.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/recipes-core/meta/signing-keys.bb b/meta/recipes-core/meta/signing-keys.bb
index cc401f3..c19a5fe 100644
--- a/meta/recipes-core/meta/signing-keys.bb
+++ b/meta/recipes-core/meta/signing-keys.bb
@@ -22,6 +22,8 @@ EXCLUDE_FROM_WORLD = "1"
def export_gpg_pubkey(d, keyid, path):
import bb
+ import os.path
+ bb.utils.mkdirhier(os.path.dirname(path))
gpg_bin = d.getVar('GPG_BIN', True) or \
bb.utils.which(os.getenv('PATH'), "gpg")
cmd = '%s --batch --yes --export --armor -o %s %s' % \
--
2.6.3
More information about the Openembedded-core
mailing list