diff options
author | Erich Eckner <git@eckner.net> | 2018-11-02 15:43:40 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-11-02 15:43:40 +0100 |
commit | 2e7f0c3f07cf47da748d776d5710e6cb03789810 (patch) | |
tree | bc1e504acc65bf1d6d81bb826c2b611a4aa8f2dd /bin | |
parent | 6f8f8f8b09fec1a1922804642b1eb1cf3931fdd7 (diff) | |
download | builder-2e7f0c3f07cf47da748d776d5710e6cb03789810.tar.xz |
bin/seed-build-list: fix the auto-seeding
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/seed-build-list | 9 |
1 files changed, 8 insertions, 1 deletions
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 ')' |