Fix the user rpm sign key can not be found issue (#5)

When the SIGNING_MODEL is set to "user", the signing-keys recipes will
run failed on the get_public_keys task. uks_rpm_keys_dir() function
could not return the right rpm_keys directory when the
SIGNING_MODEL is set to "user".

Signed-off-by: Guojian Zhou <guojian.zhou@windriver.com>
This commit is contained in:
Guojian
2017-08-22 15:14:21 +08:00
committed by Lans Zhang
parent ab05be3c9c
commit 6ad9a338e6
@@ -29,10 +29,6 @@ def uks_ima_keys_dir(d):
return d.getVar('IMA_KEYS_DIR', True) + '/'
def uks_rpm_keys_dir(d):
# XXX: currently the user rpm pubkey is not supported.
if uks_signing_model(d) != 'sample':
return ''
set_keys_dir('RPM', d)
return d.getVar('RPM_KEYS_DIR', True) + '/'