From 587773ab3a7df4c8a24296df2decd25c59e657b9 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 2 Jun 2017 13:30:04 +0200 Subject: bin/get-assignment skip locked,broken,blocked packages from the beginning --- bin/common-functions | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'bin/common-functions') diff --git a/bin/common-functions b/bin/common-functions index a04e734..9e3eeeb 100755 --- a/bin/common-functions +++ b/bin/common-functions @@ -132,3 +132,16 @@ find_git_repository_to_package_repository() { exit 1 } + +# package_locked_broken_or_blocked package git_revision mod_git_revision repository +# return if package - of given repository and revisions - is [locked or broken or blocked] + +package_locked_broken_or_blocked() { + if [ -f "${work_dir}/package-states/$1.$2.$3.$4.locked" ] || + [ -f "${work_dir}/package-states/$1.$2.$3.$4.broken" ] || + [ -f "${work_dir}/package-states/$1.$2.$3.$4.blocked" ]; then + return 0 + else + return 1 + fi +} -- cgit v1.2.3-70-g09d2