From 875737b1088218b0d638f0a7577f4b6ee9b3ac0a Mon Sep 17 00:00:00 2001 From: neingeist Date: Fri, 4 Aug 2017 10:37:15 +0200 Subject: [PATCH] gen-yum: Sign unsigned RPMs --- gen-yum | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gen-yum b/gen-yum index 67cdcd7..0e59b6b 100755 --- a/gen-yum +++ b/gen-yum @@ -16,12 +16,12 @@ for base_dir in $BASE_DIRS; do chmod a+r *.rpm chcon -t svirt_sandbox_file_t *.rpm - # Check for unsigned RPMs - unsigned=`rpm --checksig *.rpm | egrep -v ': .*pgp'` || true + # Sign unsigned RPMs + unsigned=`rpm --checksig *.rpm | egrep -v ': .*pgp' | sed 's#:.*##'` || true if [ ${#unsigned} != 0 ]; then echo "Unsigned packages:" echo "$unsigned" - exit 1 + rpmsign --addsign $unsigned fi # Create and sign repodata