summaryrefslogtreecommitdiffstats
path: root/mkallrepo
diff options
context:
space:
mode:
Diffstat (limited to 'mkallrepo')
-rwxr-xr-xmkallrepo28
1 files changed, 21 insertions, 7 deletions
diff --git a/mkallrepo b/mkallrepo
index 7a28747..6710acf 100755
--- a/mkallrepo
+++ b/mkallrepo
@@ -7,10 +7,11 @@ TMPSIG2018=$(mktemp -t XXXXXXXX.2018)
TMPSIG2021=$(mktemp -t XXXXXXXX.2021)
TMPSIG2023=$(mktemp -t XXXXXXXX.2023)
TMPSIG2024=$(mktemp -t XXXXXXXX.2024)
+TMPSIG2025=$(mktemp -t XXXXXXXX.2025)
cd /home/rpmbuild/site/rpms
-for dep in fedora/{38,39,40}/*/{i386,x86_64,aarch64} enterprise/{7,8,9}/*/{i386,x86_64,armhfp,aarch64}
+for dep in fedora/{40,41,42}/*/{i386,x86_64,aarch64} enterprise/{8,9,10}/*/{x86_64,aarch64}
do
[[ $dep =~ /modular ]] && continue
[[ $dep =~ /debug-modular ]] && continue
@@ -33,8 +34,11 @@ do
fi
done
-find SRPMS -name \*.rpm -a -newer SRPMS/repodata -print >>$TMPSIG
+# if something added in SRPMS, search for new SRPM
+if [ SRPMS -nt SRPMS/repodata ]; then
+ find SRPMS -name \*.rpm \( -newer SRPMS/repodata -o -mtime -1 \) -print >>$TMPSIG
+fi
if [ -s $TMPSIG ]; then
echo "À signer:"; sort < $TMPSIG
@@ -46,12 +50,22 @@ if [ -s $TMPSIG ]; then
# 2021
grep el9 $TMPSIG > $TMPSIG2021
# 2023
- grep fc38 $TMPSIG > $TMPSIG2023
- grep fc39 $TMPSIG >> $TMPSIG2023
+ grep fc39 $TMPSIG > $TMPSIG2023
# 2024
- grep src.rpm $TMPSIG > $TMPSIG2024
- grep fc40 $TMPSIG >> $TMPSIG2024
+ grep fc40 $TMPSIG > $TMPSIG2024
+ grep fc41 $TMPSIG >> $TMPSIG2024
+ grep el10 $TMPSIG >> $TMPSIG2024
+ # 2025
+ grep src.rpm $TMPSIG > $TMPSIG2025
+ grep fc42 $TMPSIG >> $TMPSIG2025
+ if [ -s $TMPSIG2025 ]; then
+ echo "== Signature des $(cat $TMPSIG2025 | wc -l) nouveaux RPM (2025) =="
+ if rpmsign --define '_gpg_path /home/remi/.gnupgrpm' --define "_gpg_name 83833E4687A4AA03B6AC94F2061566968F1F4B2D" --addsign $(cat $TMPSIG2025)
+ then echo done.
+ else exit 1
+ fi
+ fi
if [ -s $TMPSIG2024 ]; then
echo "== Signature des $(cat $TMPSIG2024 | wc -l) nouveaux RPM (2024) =="
if rpmsign --define '_gpg_path /home/remi/.gnupgrpm' --define "_gpg_name CF1DF0057CE85DFF5B2F2A37C2FD3B2C2A0948E4" --addsign $(cat $TMPSIG2024)
@@ -105,7 +119,7 @@ then echo "== Création des liens (noarch) =="
else echo "Rien à lier."
fi
-for dep in SRPMS fedora/{38,39,40}/*/{i386,x86_64,aarch64} enterprise/{7,8,9}/*/{i386,x86_64,armhfp,aarch64}
+for dep in SRPMS fedora/{40,41,42}/*/{i386,x86_64,aarch64} enterprise/{8,9,10}/*/{x86_64,aarch64}
do
[[ $dep =~ /modular ]] && continue
[[ $dep =~ /debug-modular ]] && continue