summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-09-11 15:09:43 +0200
committerErich Eckner <git@eckner.net>2018-09-11 15:09:43 +0200
commit2b4578976b2eb99a753c43b6edee3e165c2e14b1 (patch)
tree484b2345f5aafe4b08c6c253af1aae42c4ea26ee
parentb5c62d73ccf7e4007c8b7e8f8af87686b6aaf866 (diff)
downloadbuilder-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-xlib/mysql-functions5
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}"