diff options
author | Erich Eckner <git@eckner.net> | 2018-09-11 15:09:43 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-09-11 15:09:43 +0200 |
commit | 2b4578976b2eb99a753c43b6edee3e165c2e14b1 (patch) | |
tree | 484b2345f5aafe4b08c6c253af1aae42c4ea26ee | |
parent | b5c62d73ccf7e4007c8b7e8f8af87686b6aaf866 (diff) | |
download | builder-2b4578976b2eb99a753c43b6edee3e165c2e14b1.tar.xz |
lib/mysql-functions: mysql_sanity_check(): two packages with different architectures in equally-stable any-repositories cannot be a "duplicate package in equally stable repositories"
-rwxr-xr-x | lib/mysql-functions | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions index df51aed..363ed47 100755 --- a/lib/mysql-functions +++ b/lib/mysql-functions @@ -562,6 +562,11 @@ mysql_sanity_check() { mysql_join_binary_packages_in_repositories_binary_packages 'b_bir' 'b' printf ' AND `a`.`pkgname`=`b`.`pkgname`' printf ' AND `a`.`id`!=`b`.`id`' + printf ' AND (' + printf '`a_r`.`architecture`!=%s' \ + "${architecture_ids__any}" + printf ' OR `a`.`architecture`=`b`.`architecture`' + printf ')' printf ' WHERE `a_r`.`stability` NOT IN (%s,%s)' \ "${repository_stability_ids__forbidden}" \ "${repository_stability_ids__virtual}" |