From 19331c922ef3903a622d02fb0070ab006216579a Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 7 Jun 2018 16:06:06 +0200 Subject: bin/return-assignment: put built packages only in repos for those architectures, where the package runs --- bin/return-assignment | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin') 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' \ -- cgit v1.2.3-54-g00ecf