gen-yum: Sign unsigned RPMs

master
neingeist 7 years ago
parent 9aab5d5147
commit 875737b108

@ -16,12 +16,12 @@ for base_dir in $BASE_DIRS; do
chmod a+r *.rpm chmod a+r *.rpm
chcon -t svirt_sandbox_file_t *.rpm chcon -t svirt_sandbox_file_t *.rpm
# Check for unsigned RPMs # Sign unsigned RPMs
unsigned=`rpm --checksig *.rpm | egrep -v ': .*pgp'` || true unsigned=`rpm --checksig *.rpm | egrep -v ': .*pgp' | sed 's#:.*##'` || true
if [ ${#unsigned} != 0 ]; then if [ ${#unsigned} != 0 ]; then
echo "Unsigned packages:" echo "Unsigned packages:"
echo "$unsigned" echo "$unsigned"
exit 1 rpmsign --addsign $unsigned
fi fi
# Create and sign repodata # Create and sign repodata

Loading…
Cancel
Save