Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/return-assignment
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-06-16 10:21:33 +0200
committerErich Eckner <git@eckner.net>2020-06-16 10:21:33 +0200
commit1980da79ed985d15ba00a48f5f62523b1eabe96d (patch)
tree38cc69490020ea0ccee5b952b764bd0143a2c1cc /bin/return-assignment
parent2d03edaec413d253485c95e99322c48444bd18c2 (diff)
bin/return-assignment: only prioritize haskell packages which are not broken (this is too strict, but I have currently no better idea how to avoid endless priority-cycles
Diffstat (limited to 'bin/return-assignment')
-rwxr-xr-xbin/return-assignment3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index d040b22..aa0fa4f 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -410,6 +410,9 @@ if [ "$6" = 'ERROR' ]; then
printf ' JOIN `binary_packages`'
printf ' ON `binary_packages`.`pkgname`=`broken`.`pkgname`'
mysql_join_binary_packages_build_assignments
+# TODO: We might want to relax the below condition somewhat. But we should
+# be careful to avoid prioritizing-loops.
+ printf ' AND `build_assignments`.`is_broken` IS NULL'
mysql_join_binary_packages_binary_packages_in_repositories
printf ' AND `binary_packages_in_repositories`.`repository`=%s' \
"${repository_ids__any_build_list}"