diff options
author | Erich Eckner <git@eckner.net> | 2017-06-29 10:00:16 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-06-29 10:00:16 +0200 |
commit | 0a9b49c48119892c259012085ee37442b6b1e45d (patch) | |
tree | 6b5c1fd3f42d543d70f049e3f1531c9dae6c3438 /bin | |
parent | 9be8e4ad69cfceb9fc7e13dd78a3b23310575f38 (diff) | |
download | builder-0a9b49c48119892c259012085ee37442b6b1e45d.tar.xz |
bin/get-package-updates: add sanity check for "build-order"
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/get-package-updates | 5 |
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.' ( |