diff options
author | Remi Collet <remi@remirepo.net> | 2018-01-12 15:13:54 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2018-01-12 15:13:54 +0100 |
commit | 3caa936d038453165f76a80d8fe2f7d2b9a28a79 (patch) | |
tree | 23baa95f8f70c697ddf86c229b9f095dbb4c635f /mkrepo | |
parent | 0f1b2cbf895b53a1ecac1a2f09dcc881a2ccf5bb (diff) |
use new key to sign F28 and SRPM
Diffstat (limited to 'mkrepo')
-rwxr-xr-x | mkrepo | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -6,7 +6,7 @@ nom=${PWD#/home/rpmbuild/site/rpms/} if [ "$nom" = "SRPMS" ] then dis=fedora - ver=26 + ver=28 old=5 else dis=${nom%%/*} @@ -20,7 +20,10 @@ if [ ${1:-check} != nocheck ]; then rpm -K *.rpm | grep -v 'gpg.*OK' | grep -v 'pgp.*OK' | cut -d: -f1 | tee $TMP if [ -s $TMP ] then - if [ "$dis" == "fedora" -a "$ver" -ge 26 ] + if [ "$dis" == "fedora" -a "$ver" -ge 28 ] + then echo "key 2017" + 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" |