Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-07 16:06:06 +0200
committerErich Eckner <git@eckner.net>2018-06-07 16:06:06 +0200
commit19331c922ef3903a622d02fb0070ab006216579a (patch)
tree9f65fd62bc04e9d949a63b3737d1aaeae11eec6c /bin
parentdd8de0e6238cb9ab6f48d727b4646d163e0ec961 (diff)
bin/return-assignment: put built packages only in repos for those architectures, where the package runs
Diffstat (limited to 'bin')
-rwxr-xr-xbin/return-assignment5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index c37aef1..fe63e69 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -464,8 +464,6 @@ if [ ! -s "${tmp_dir}/package-ids" ]; then
exit 4
fi
-# TODO: we need to filter out some architectures here
-
# shellcheck disable=SC2016
{
printf 'SELECT `binary_packages`.`id`,'
@@ -479,6 +477,9 @@ fi
mysql_join_upstream_repositories_repository_moves
printf ' JOIN `repositories` as `t` ON `t`.`id`=`repository_moves`.`to_repository`'
mysql_join_repositories_architectures 't' 't_a'
+ printf ' JOIN `architecture_compatibilities`'
+ printf ' ON `architecture_compatibilities`.`built_for`=`binary_packages`.`architecture`'
+ printf ' AND `architecture_compatibilities`.`runs_for`=`t`.`architecture`'
printf ' WHERE `repository_moves`.`from_repository`=%s' \
"${repository_ids__any_build_list}"
printf ' AND `build_assignments`.`id`=from_base64("%s");\n' \