index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/get-package-updates | 10 |
diff --git a/bin/get-package-updates b/bin/get-package-updates index 2e76f5e..68efa0e 100755 --- a/bin/get-package-updates +++ b/bin/get-package-updates @@ -474,6 +474,16 @@ else rm "${work_dir}/tsort.error" fi +deletion_list_count=$( + wc -l < \ + "${work_dir}/deletion-list.new" +) +if [ "${deletion_list_count}" -gt 1000 ]; then + >&2 printf 'There are %s > 1000 packages on the deletion-list. This does not seem right.\n' \ + "${deletion_list_count}" + exit 3 +fi + # Move the .new-files to the actual files rm -rf --one-file-system "${work_dir}/build-list.loops" |