summaryrefslogtreecommitdiff
path: root/bin/db-update
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-22 09:04:41 +0200
committerErich Eckner <git@eckner.net>2017-06-22 09:04:41 +0200
commitbc7c6279b3f64e82701e0d26a0c12483f994eed3 (patch)
tree08be7a38e6ceaf788c0e3a23d634d308030f1616 /bin/db-update
parent6e793c837f0d7c4eb691224ed85a6669015d29bd (diff)
downloadbuilder-bc7c6279b3f64e82701e0d26a0c12483f994eed3.tar.xz
bin/db-update bin/get-assignment bin/get-package-updates bin/return-assignment: check for sanity of build master before doing anything
Diffstat (limited to 'bin/db-update')
-rwxr-xr-xbin/db-update5
1 files changed, 5 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