summaryrefslogtreecommitdiffstats
path: root/mkallrepo
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-11-29 10:23:14 +0100
committerRemi Collet <remi@php.net>2024-11-29 10:23:14 +0100
commit8aaa0f55488847cedf306e7fa9b0915e21256cea (patch)
tree1340e40deeb4e2cb13183f21cda66e0c304dc283 /mkallrepo
parent0d04e0c3bc005784439bcbbb24b8dedf8dd6411b (diff)
Improve workaround to avoid unsigned src.rpm
Diffstat (limited to 'mkallrepo')
-rwxr-xr-xmkallrepo5
1 files changed, 4 insertions, 1 deletions
diff --git a/mkallrepo b/mkallrepo
index 9424600..830b2b9 100755
--- a/mkallrepo
+++ b/mkallrepo
@@ -33,8 +33,11 @@ do
fi
done
-find SRPMS -name \*.rpm \( -newer SRPMS/repodata -o -mtime -1 \) -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