diff options
Diffstat (limited to 'modules/buildsystem/templates/sign-check-package')
-rw-r--r-- | modules/buildsystem/templates/sign-check-package | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/buildsystem/templates/sign-check-package b/modules/buildsystem/templates/sign-check-package index 6d16aa87..ebb81f61 100644 --- a/modules/buildsystem/templates/sign-check-package +++ b/modules/buildsystem/templates/sign-check-package @@ -8,9 +8,16 @@ tmpfile=`mktemp` cp -pf "$file" "$tmpfile" rpm --delsign "$tmpfile" /usr/bin/mga-signpackage "$tmpfile" "$key" "$keydir" +nbtry=0 while rpmsign -Kv "$tmpfile" 2>&1 | grep BAD do + nbtry=$(($nbtry + 1)) + if [ $nbtry -ge 15 ] + then + exit 1 + fi cp -pf "$file" "$tmpfile" + rpm --delsign "$tmpfile" /usr/bin/mga-signpackage "$tmpfile" "$key" "$keydir" done mv -f "$tmpfile" "$file" |