summaryrefslogtreecommitdiff
path: root/bin/get-assignment
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-04-23 15:28:11 +0200
committerErich Eckner <git@eckner.net>2017-04-23 15:28:11 +0200
commitc44b75c2115197c5e5458862a7ecc7c2d6ebfbe8 (patch)
treee3043407732d458fe4669112e526c21fc0b47210 /bin/get-assignment
parent1b08ec576fc105be8542a61aceb1b3683557e4b3 (diff)
downloadbuilder-c44b75c2115197c5e5458862a7ecc7c2d6ebfbe8.tar.xz
bin/get-assignment: add comments
Diffstat (limited to 'bin/get-assignment')
-rwxr-xr-xbin/get-assignment4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/get-assignment b/bin/get-assignment
index fed7056..a35e415 100755
--- a/bin/get-assignment
+++ b/bin/get-assignment
@@ -73,6 +73,8 @@ if [ ${num_jobs} -ge ${max_parallel_build_per_client} ]; then
exit 4
fi
+# Find first package of build-list whose dependencies are all met
+
while read -r package git_revision repository; do
[ -z "$(
@@ -88,6 +90,8 @@ while read -r package git_revision repository; do
done < "${work_dir}/build-list"
+# Find first package which breaks a loop and is not locked
+
if [ -s "${work_dir}/tsort.error" ]; then
grep -A1 '^tsort: -: input contains a loop:$' "${work_dir}/tsort.error" | \