summaryrefslogtreecommitdiffstats
path: root/mkallrepo
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-01-05 15:21:11 +0100
committerRemi Collet <remi@php.net>2023-01-05 15:21:11 +0100
commit7f690bc034ef73576330537722e8654d64ac0d51 (patch)
tree0c6c2ff8382bfd15458339134becd7a95171bc4b /mkallrepo
parent67ea8825a7f25ec936a9166c54de6529b46d0737 (diff)
2023 key
Diffstat (limited to 'mkallrepo')
-rwxr-xr-xmkallrepo11
1 files changed, 10 insertions, 1 deletions
diff --git a/mkallrepo b/mkallrepo
index 9ba5151..0f76a8b 100755
--- a/mkallrepo
+++ b/mkallrepo
@@ -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)