From d7606faf5a268e88c10a5e1b1b542fe8e77aeae4 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 4 Jul 2017 09:27:19 +0200 Subject: bin/sanity-check: check for build-orders on deletion-list --- bin/sanity-check | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'bin') diff --git a/bin/sanity-check b/bin/sanity-check index dff043c..4b3cc36 100755 --- a/bin/sanity-check +++ b/bin/sanity-check @@ -93,6 +93,24 @@ while [ $# -gt 0 ]; do exit 1 fi + errors="$( + ( + grep -vxF 'break_loops' "${work_dir}/build-list" | \ + awk '{print $1}' + cat "${work_dir}/deletion-list" + ) | \ + sort | \ + uniq -d + )" + if [ -n "${errors}" ]; then + if [ ${silence} -le 1 ]; then + echo + echo "The following packages appear on the build- and deletion-list:" + echo "${errors}" + fi + exit 1 + fi + [ ${silence} -gt 0 ] || \ >&2 echo ' passed.' -- cgit v1.2.3-70-g09d2