diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/db-update | 5 | ||||
-rwxr-xr-x | bin/get-assignment | 5 | ||||
-rwxr-xr-x | bin/get-package-updates | 5 | ||||
-rwxr-xr-x | bin/return-assignment | 5 |
4 files changed, 20 insertions, 0 deletions
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}" |