|
|
@ -12,6 +12,10 @@ for base_dir in $BASE_DIRS; do
|
|
|
|
echo "== $YUM"
|
|
|
|
echo "== $YUM"
|
|
|
|
cd $YUM
|
|
|
|
cd $YUM
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Fix permissions
|
|
|
|
|
|
|
|
chmod a+r *.rpm
|
|
|
|
|
|
|
|
chcon -t svirt_sandbox_file_t *.rpm
|
|
|
|
|
|
|
|
|
|
|
|
# Check for unsigned RPMs
|
|
|
|
# Check for unsigned RPMs
|
|
|
|
unsigned=`rpm --checksig *.rpm | egrep -v ': .*pgp'` || true
|
|
|
|
unsigned=`rpm --checksig *.rpm | egrep -v ': .*pgp'` || true
|
|
|
|
if [ ${#unsigned} != 0 ]; then
|
|
|
|
if [ ${#unsigned} != 0 ]; then
|
|
|
@ -28,9 +32,6 @@ for base_dir in $BASE_DIRS; do
|
|
|
|
gpg2 -u $GPG_KEY --detach-sign --armor repodata/repomd.xml
|
|
|
|
gpg2 -u $GPG_KEY --detach-sign --armor repodata/repomd.xml
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Fix permissions
|
|
|
|
|
|
|
|
chmod a+r *.rpm
|
|
|
|
|
|
|
|
restorecon -v *.rpm
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|