Filter out all gpg-pubkey entries from rpmdb as these are not RPMs.

This commit is contained in:
Jindrich Novy 2019-07-15 10:53:50 +02:00
parent 67d628b22a
commit 239362b8d0

View file

@ -18,7 +18,7 @@ RELEASE=$(rpm -q --queryformat "%{VERSION}\n" --root $IMAGE_MNT -f /etc/os-relea
#
# From the executable image, list the SRC RPMS used to build the image
#
SRC_RPMS=$(rpm -qa --root ${IMAGE_MNT} --queryformat '%{SOURCERPM}\n' | grep -v '(none)' | sort -u)
SRC_RPMS=$(rpm -qa --root ${IMAGE_MNT} --queryformat '%{SOURCERPM}\n' | grep -v '^gpg-pubkey' | sort -u)
#
# Create directory in source container image for RPMS