From 239362b8d074c0809349fb058587e1090a038094 Mon Sep 17 00:00:00 2001 From: Jindrich Novy Date: Mon, 15 Jul 2019 10:53:50 +0200 Subject: [PATCH] Filter out all gpg-pubkey entries from rpmdb as these are not RPMs. --- BuildSourceImage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BuildSourceImage.sh b/BuildSourceImage.sh index 4d026cf..eb19e56 100755 --- a/BuildSourceImage.sh +++ b/BuildSourceImage.sh @@ -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