summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-29 10:00:16 +0200
committerErich Eckner <git@eckner.net>2017-06-29 10:00:16 +0200
commit0a9b49c48119892c259012085ee37442b6b1e45d (patch)
tree6b5c1fd3f42d543d70f049e3f1531c9dae6c3438 /bin
parent9be8e4ad69cfceb9fc7e13dd78a3b23310575f38 (diff)
downloadbuilder-0a9b49c48119892c259012085ee37442b6b1e45d.tar.xz
bin/get-package-updates: add sanity check for "build-order"
Diffstat (limited to 'bin')
-rwxr-xr-xbin/get-package-updates5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index e096eff..b292932 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -289,6 +289,11 @@ done \
< "${work_dir}/build-list.new" \
> "${work_dir}/build-order"
+if grep -vq '^\S\+ \S\+$' "${work_dir}/build-order"; then
+ >&2 echo 'Created partial order file "build-order" is invalid.'
+ exit 2
+fi
+
echo 'Now actually sort it.'
(