diff options
author | Remi Collet <remi@remirepo.net> | 2019-03-01 14:30:26 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2019-03-01 14:30:26 +0100 |
commit | 40ad08178b7972683895cbdb7297181b465531a4 (patch) | |
tree | cb897f7aa7d54dd9522cf1341d2db777587fc417 /mkrepo | |
parent | dd50c7c9f95cb5e7557e477046ced43a964abbbc (diff) |
-F26 +F30
Diffstat (limited to 'mkrepo')
-rwxr-xr-x | mkrepo | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -6,7 +6,7 @@ nom=${PWD#/home/rpmbuild/site/rpms/} if [ "$nom" = "SRPMS" ] then dis=fedora - ver=28 + ver=30 old=5 else dis=${nom%%/*} @@ -20,12 +20,22 @@ if [ ${1:-check} != nocheck ]; then rpm -K *.rpm | grep -v 'signatures.*OK' | cut -d: -f1 | tee $TMP if [ -s $TMP ] then - if [ "$dis" == "fedora" -a "$ver" -ge 28 ] + if [ "$dis" == "fedora" -a "$ver" -ge 30 ] + then echo "key 2019" + rpmsign --define '_gpg_path /home/remi/.gnupg2019' --define "_gpg_name Remi's RPM repository" --addsign $(cat $TMP) + + elif [ "$dis" == "fedora" -a "$ver" -ge 28 ] + then echo "key 2018" + rpmsign --define '_gpg_path /home/remi/.gnupg2018' --define "_gpg_name Remi's RPM repository" --addsign $(cat $TMP) + + elif [ "$dis" == "enterprise" -a "$ver" -ge 8 ] then echo "key 2018" rpmsign --define '_gpg_path /home/remi/.gnupg2018' --define "_gpg_name Remi's RPM repository" --addsign $(cat $TMP) + elif [ "$dis" == "fedora" -a "$ver" -ge 26 ] then echo "key 2017" rpmsign --define '_gpg_path /home/remi/.gnupg2017' --define "_gpg_name Remi's RPM repository" --addsign $(cat $TMP) + else echo "old key" rpmsign --define '_gpg_path /home/remi/.gnupgrpm' --define "_gpg_name Remi Collet" --addsign $(cat $TMP) fi |