summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-07-04 09:27:19 +0200
committerErich Eckner <git@eckner.net>2017-07-04 09:27:19 +0200
commitd7606faf5a268e88c10a5e1b1b542fe8e77aeae4 (patch)
treee71363a17af8d80c56a0388c1e80e679a384d4cc /bin
parent7cf95815d55c0550566714e8359ee486dec5f884 (diff)
downloadbuilder-d7606faf5a268e88c10a5e1b1b542fe8e77aeae4.tar.xz
bin/sanity-check: check for build-orders on deletion-list
Diffstat (limited to 'bin')
-rwxr-xr-xbin/sanity-check18
1 files changed, 18 insertions, 0 deletions
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.'