mirror of
https://github.com/jiazhang0/meta-secure-core.git
synced 2026-05-07 02:08:20 +00:00
key-store-rpm-pubkey: fix installation failure
Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
This commit is contained in:
@@ -96,9 +96,9 @@ pkg_postinst_${PN}-rpm-pubkey() {
|
||||
|
||||
# XXX: only import the new key
|
||||
for keyfile in `ls $keydir/RPM-GPG-KEY-*`; do
|
||||
[ ! -f "$keyfile" ] && continue
|
||||
[ -s "$keyfile" ] || continue
|
||||
|
||||
! rpm --import "$keyfile" && {
|
||||
rpm --import "$keyfile" || {
|
||||
echo "Unable to import the public key $keyfile"
|
||||
exit 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user