index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-11-10 20:49:42 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-11-10 20:49:42 +0100 |
commit | 359ec7afa008f5f01920e6e67cb9e7fc35e6e82d (patch) | |
tree | 18b173206b0dcbd7e902bc4fb688f373fef41a54 /bin/get-package-updates | |
parent | b4071c312d7e7195dc0d6528788f2cb909222824 (diff) |
-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" |