diff options
Diffstat (limited to 'mkallrepo')
-rwxr-xr-x | mkallrepo | 23 |
1 files changed, 16 insertions, 7 deletions
@@ -33,19 +33,28 @@ if [ -s $TMPSIG ]; then grep fc26 $TMPSIG > $TMPSIG2 grep fc27 $TMPSIG >> $TMPSIG2 - grep src.rpm $TMPSIG >> $TMPSIG2 + + grep fc28 $TMPSIG > $TMPSIG3 + grep src.rpm $TMPSIG >> $TMPSIG3 + + if [ -s $TMPSIG3 ]; then + echo "== Signature des $(cat $TMPSIG3 | wc -l) nouveaux RPM (2018) ==" + if rpmsign --define '_gpg_path /home/remi/.gnupg2018' --define "_gpg_name Remi's RPM repository" --addsign $(cat $TMPSIG3) + then echo done. + else exit 1 + fi + fi if [ -s $TMPSIG2 ]; then - echo "== Signature des $(cat $TMPSIG2 | wc -l) nouveaux RPM (new) ==" + echo "== Signature des $(cat $TMPSIG2 | wc -l) nouveaux RPM (2017) ==" if rpmsign --define '_gpg_path /home/remi/.gnupg2017' --define "_gpg_name Remi's RPM repository" --addsign $(cat $TMPSIG2) then echo done. else exit 1 fi fi - - grep -v fc26 $TMPSIG | grep -v fc27 | grep -v src.rpm > $TMPSIG2 - if [ -s $TMPSIG2 ]; then - echo "== Signature des $(cat $TMPSIG2 | wc -l) nouveaux RPM (old) ==" - if rpmsign --define '_gpg_path /home/remi/.gnupgrpm' --define "_gpg_name Remi Collet" --addsign $(cat $TMPSIG2) + grep -v fc26 $TMPSIG | grep -v fc27 | grep -v fc28 | grep -v src.rpm > $TMPSIG1 + if [ -s $TMPSIG1 ]; then + echo "== Signature des $(cat $TMPSIG1 | wc -l) nouveaux RPM (old) ==" + if rpmsign --define '_gpg_path /home/remi/.gnupgrpm' --define "_gpg_name Remi Collet" --addsign $(cat $TMPSIG1) then echo done. else exit 1 fi |