diff options
Diffstat (limited to 'mkallrepo')
-rwxr-xr-x | mkallrepo | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -6,6 +6,7 @@ TMPSIG2000=$(mktemp -t XXXXXXXX.2000) TMPSIG2018=$(mktemp -t XXXXXXXX.2018) TMPSIG2021=$(mktemp -t XXXXXXXX.2021) TMPSIG2022=$(mktemp -t XXXXXXXX.2022) +TMPSIG2023=$(mktemp -t XXXXXXXX.2023) cd /home/rpmbuild/site/rpms @@ -49,8 +50,16 @@ if [ -s $TMPSIG ]; then # 2022 grep fc36 $TMPSIG > $TMPSIG2022 grep fc37 $TMPSIG >> $TMPSIG2022 - grep src.rpm $TMPSIG >> $TMPSIG2022 + # 2023 + grep src.rpm $TMPSIG > $TMPSIG2023 + if [ -s $TMPSIG2023 ]; then + echo "== Signature des $(cat $TMPSIG2023 | wc -l) nouveaux RPM (2023) ==" + if rpmsign --define '_gpg_path /home/remi/.gnupgrpm' --define "_gpg_name 50A5E157DFE548EC7C05E9D8D5933DAB6DEFD35E" --addsign $(cat $TMPSIG2023) + then echo done. + else exit 1 + fi + fi if [ -s $TMPSIG2022 ]; then echo "== Signature des $(cat $TMPSIG2022 | wc -l) nouveaux RPM (2022) ==" if rpmsign --define '_gpg_path /home/remi/.gnupgrpm' --define "_gpg_name 845160D23149DAD504F0A32D83C0639E1FEF0014" --addsign $(cat $TMPSIG2022) |