Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-07-01 11:45:40 +0200
committerErich Eckner <git@eckner.net>2020-07-01 11:45:40 +0200
commit912c11af7f369721603bec4e6194166f8c856476 (patch)
tree3cad7e7dbbfeed3cb550f6b784a8fa13d45cc3bb
parentfa17bbf63438645741e5fe19b862d1012ff7089a (diff)
bin/return-assignment: prepend "haskell-" to prioritized packages, too
-rwxr-xr-xbin/return-assignment5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index 89ab3ba..40733c1 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -412,7 +412,10 @@ if [ "$6" = 'ERROR' ]; then
# TODO: We might want to make this architecture-sensitive.
printf 'UPDATE `broken`'
printf ' JOIN `binary_packages`'
- printf ' ON `binary_packages`.`pkgname`=`broken`.`pkgname`'
+ printf ' ON ('
+ printf '`binary_packages`.`pkgname`=`broken`.`pkgname`'
+ printf ' OR `binary_packages`.`pkgname`=CONCAT("haskell-",`broken`.`pkgname`)'
+ printf ')'
mysql_join_binary_packages_build_assignments
mysql_join_binary_packages_binary_packages_in_repositories
printf ' AND `binary_packages_in_repositories`.`repository`=%s' \