From bc7c6279b3f64e82701e0d26a0c12483f994eed3 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 22 Jun 2017 09:04:41 +0200 Subject: bin/db-update bin/get-assignment bin/get-package-updates bin/return-assignment: check for sanity of build master before doing anything --- bin/db-update | 5 +++++ bin/get-assignment | 5 +++++ bin/get-package-updates | 5 +++++ bin/return-assignment | 5 +++++ 4 files changed, 20 insertions(+) (limited to 'bin') diff --git a/bin/db-update b/bin/db-update index bf78581..65965c6 100755 --- a/bin/db-update +++ b/bin/db-update @@ -290,6 +290,11 @@ done packages_to_stabilize=${packages_to_stabilize} ${@} +if ! ${base_dir}/bin/sanity-check -r; then + >&2 echo 'Build master is not sane.' + exit 1 +fi + for package in ${packages_to_stabilize}; do # some sanity checks if [ ! -f "${work_dir}/package-states/${package}.testing" ]; then diff --git a/bin/get-assignment b/bin/get-assignment index 66e8971..d486738 100755 --- a/bin/get-assignment +++ b/bin/get-assignment @@ -50,6 +50,11 @@ hand_out_assignment() { } +if ! ${base_dir}/bin/sanity-check -r; then + >&2 echo 'Build master is not sane.' + exit 1 +fi + # Create a lock file and a trap. exec 9> "${build_list_lock_file}" diff --git a/bin/get-package-updates b/bin/get-package-updates index d1ceaaa..5faf6f5 100755 --- a/bin/get-package-updates +++ b/bin/get-package-updates @@ -72,6 +72,11 @@ if [ $# -ne 0 ]; then usage fi +if ! ${base_dir}/bin/sanity-check -r; then + >&2 echo 'Build master is not sane.' + exit 1 +fi + # delete_package package # mark $package for deletion delete_package() { diff --git a/bin/return-assignment b/bin/return-assignment index 1ff2a50..e4a3934 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -20,6 +20,11 @@ . "${0%/*}/../conf/default.conf" +if ! ${base_dir}/bin/sanity-check -r; then + >&2 echo 'Build master is not sane.' + exit 1 +fi + # Create a lock file and a trap. exec 9> "${build_list_lock_file}" -- cgit v1.2.3-70-g09d2