summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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