From 0a9b49c48119892c259012085ee37442b6b1e45d Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 29 Jun 2017 10:00:16 +0200 Subject: bin/get-package-updates: add sanity check for "build-order" --- bin/get-package-updates | 5 +++++ 1 file changed, 5 insertions(+) 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.' ( -- cgit v1.2.3-70-g09d2