summaryrefslogtreecommitdiff
path: root/lib/mysql-functions
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mysql-functions')
-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}"