mirror of
https://github.com/jiazhang0/meta-secure-core.git
synced 2026-07-16 12:47:00 +00:00
signing-keys: fix gpg key import failure
Signed-off-by: Jia Zhang <lans.zhang2008@gmail.com>
This commit is contained in:
@@ -13,8 +13,8 @@ python check_public_keys () {
|
|||||||
|
|
||||||
# Import RPM_GPG_NAME if not found
|
# Import RPM_GPG_NAME if not found
|
||||||
gpg_key = uks_rpm_keys_dir(d) + 'RPM-GPG-PRIVKEY-' + gpg_keyid
|
gpg_key = uks_rpm_keys_dir(d) + 'RPM-GPG-PRIVKEY-' + gpg_keyid
|
||||||
cmd = '%s --homedir %s --import %s' % \
|
cmd = '%s --batch --homedir %s --import %s --passphrase %s' % \
|
||||||
(gpg_bin, gpg_path, gpg_key)
|
(gpg_bin, gpg_path, gpg_key, d.getVar('RPM_GPG_PASSPHRASE', True))
|
||||||
status, output = oe.utils.getstatusoutput(cmd)
|
status, output = oe.utils.getstatusoutput(cmd)
|
||||||
print (cmd)
|
print (cmd)
|
||||||
if status:
|
if status:
|
||||||
|
|||||||
Reference in New Issue
Block a user