summaryrefslogtreecommitdiff
path: root/bin/sanity-check
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-09-13 06:31:33 +0200
committerErich Eckner <git@eckner.net>2018-09-13 06:31:33 +0200
commitceeeddc1eb9188b67762ca002be9ab829bdd5ffa (patch)
treecec0fc7f500e626fe72ff8804fa966af09dd003a /bin/sanity-check
parent7a05d7e44ac3df8c4ce8eb88cc23d7a410d289f2 (diff)
downloadbuilder-ceeeddc1eb9188b67762ca002be9ab829bdd5ffa.tar.xz
bin/sanity-check: modify check: being on build- and deletion-list simultanously is ok iff the architectures are fitting
Diffstat (limited to 'bin/sanity-check')
-rwxr-xr-xbin/sanity-check6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/sanity-check b/bin/sanity-check
index 5e74edb..57c77fd 100755
--- a/bin/sanity-check
+++ b/bin/sanity-check
@@ -215,7 +215,11 @@ while [ $# -gt 0 ]; do
mysql_join_binary_packages_binary_packages_in_repositories 'a' 'air'
mysql_join_binary_packages_in_repositories_repositories 'air' 'a_r'
printf ' AND `a_r`.`name`="build-list"'
- printf ' JOIN `binary_packages` AS `b` ON `a`.`pkgname`=`b`.`pkgname`'
+ printf ' JOIN `binary_packages` AS `b`'
+ printf ' ON `a`.`pkgname`=`b`.`pkgname`'
+ printf ' JOIN `architecture_compatibilities`'
+ printf ' ON `architecture_compatibilities`.`built_for`=`a`.`architecture`'
+ printf ' AND `architecture_compatibilities`.`runs_on`=`b`.`architecture`'
mysql_join_binary_packages_binary_packages_in_repositories 'b' 'bir'
mysql_join_binary_packages_in_repositories_repositories 'bir' 'b_r'
printf ' AND `b_r`.`name`="deletion-list";\n'