From 8aaa0f55488847cedf306e7fa9b0915e21256cea Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 29 Nov 2024 10:23:14 +0100 Subject: Improve workaround to avoid unsigned src.rpm --- mkallrepo | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit