Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/get-assignment
diff options
context:
space:
mode:
Diffstat (limited to 'bin/get-assignment')
-rwxr-xr-xbin/get-assignment9
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/get-assignment b/bin/get-assignment
index 18c8bc2..8ac77a3 100755
--- a/bin/get-assignment
+++ b/bin/get-assignment
@@ -23,9 +23,8 @@ mkdir -p "${work_dir}/package-states"
hand_out_assignment() {
- # locked and broken packages won't be handed out
- if [ -f "${work_dir}/package-states/$1.$2.$3.$4.locked" ] ||
- [ -f "${work_dir}/package-states/$1.$2.$3.$4.broken" ]; then
+ # locked, broken and blocked packages won't be handed out
+ if package_locked_broken_or_blocked "$1" "$2" "$3" "$4"; then
return 0
fi
@@ -90,6 +89,10 @@ fi
while read -r package git_revision mod_git_revision repository; do
+ if package_locked_broken_or_blocked "${package}" "${git_revision}" "${mod_git_revision}" "${repository}"; then
+ continue
+ fi
+
[ -z "$(
(
cat "${work_dir}/package-infos/${package}."*".needs"