From 2e7f0c3f07cf47da748d776d5710e6cb03789810 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 2 Nov 2018 15:43:40 +0100 Subject: bin/seed-build-list: fix the auto-seeding --- bin/seed-build-list | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/seed-build-list b/bin/seed-build-list index 7c3cf9d..385dd99 100755 --- a/bin/seed-build-list +++ b/bin/seed-build-list @@ -327,7 +327,7 @@ fi fi # auto-detect pkgbases if ${auto}; then -#TODO: there is some architecture logic missing here +# TODO: there is some architecture logic missing here printf 'SELECT DISTINCT "pkgbase",1,`package_sources`.`pkgbase`,`upstream_repositories`.`name` FROM (' printf 'SELECT DISTINCT `binary_packages`.`id`,' printf '`binary_packages`.`build_assignment`' @@ -379,6 +379,13 @@ fi printf ' JOIN `repository_stability_relations` AS `ss_rsr`' printf ' ON `ss_rsr`.`less_stable`=`ss_r`.`stability`' printf ' WHERE `ss_bp`.`pkgname`=`subst_bp`.`pkgname`' + printf ' AND (' + printf '`ss_bp`.`architecture`=`subst_bp`.`architecture`' + printf ' OR `ss_bp`.`architecture`=%s' \ + "${architecture_ids__any}" + printf ' OR `subst_bp`.`architecture`=%s' \ + "${architecture_ids__any}" + printf ')' printf ' AND `ss_bp`.`id`!=`subst_bp`.`id`' printf ' AND `ss_rsr`.`more_stable`=`subst_r`.`stability`' printf ')' -- cgit v1.2.3-70-g09d2