summaryrefslogtreecommitdiffstats
path: root/mkallrepo
diff options
context:
space:
mode:
Diffstat (limited to 'mkallrepo')
-rwxr-xr-xmkallrepo15
1 files changed, 12 insertions, 3 deletions
diff --git a/mkallrepo b/mkallrepo
index 5720c90..313ec6e 100755
--- a/mkallrepo
+++ b/mkallrepo
@@ -7,10 +7,11 @@ TMPSIG2018=$(mktemp -t XXXXXXXX.2018)
TMPSIG2021=$(mktemp -t XXXXXXXX.2021)
TMPSIG2022=$(mktemp -t XXXXXXXX.2022)
TMPSIG2023=$(mktemp -t XXXXXXXX.2023)
+TMPSIG2024=$(mktemp -t XXXXXXXX.2024)
cd /home/rpmbuild/site/rpms
-for dep in fedora/{36,37,38,39}/*/{i386,x86_64,aarch64} enterprise/{7,8,9}/*/{i386,x86_64,armhfp,aarch64}
+for dep in fedora/{37,38,39}/*/{i386,x86_64,aarch64} enterprise/{7,8,9}/*/{i386,x86_64,armhfp,aarch64}
do
[[ $dep =~ /modular ]] && continue
[[ $dep =~ /debug-modular ]] && continue
@@ -51,10 +52,18 @@ if [ -s $TMPSIG ]; then
grep fc36 $TMPSIG > $TMPSIG2022
grep fc37 $TMPSIG >> $TMPSIG2022
# 2023
- grep src.rpm $TMPSIG > $TMPSIG2023
- grep fc38 $TMPSIG >> $TMPSIG2023
+ grep fc38 $TMPSIG > $TMPSIG2023
grep fc39 $TMPSIG >> $TMPSIG2023
+ # 2024
+ grep src.rpm $TMPSIG > $TMPSIG2024
+ if [ -s $TMPSIG2024 ]; then
+ echo "== Signature des $(cat $TMPSIG2023 | wc -l) nouveaux RPM (2024) =="
+ if rpmsign --define '_gpg_path /home/remi/.gnupgrpm' --define "_gpg_name CF1DF0057CE85DFF5B2F2A37C2FD3B2C2A0948E4" --addsign $(cat $TMPSIG2024)
+ then echo done.
+ else exit 1
+ fi
+ fi
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)