index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-02-12 06:24:09 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-02-12 06:24:09 +0100 |
commit | e2f5e61ff6a66bbf49af4d6f07f87eae6b4c3474 (patch) | |
tree | 224bae7a1d1e863dddaa283dc12b96d29b15a300 /bin/mysql-functions | |
parent | c4a7f05c1eb634c5e2e6319c626c943ffb22f06f (diff) |
-rwxr-xr-x | bin/mysql-functions | 9 |
diff --git a/bin/mysql-functions b/bin/mysql-functions index 16c0141..262112e 100755 --- a/bin/mysql-functions +++ b/bin/mysql-functions @@ -638,6 +638,15 @@ mysql_sanity_check() { printf ' JOIN `repositories`' printf ' ON `a`.`repository`=`repositories`.`id`' printf ' WHERE `repositories`.`name`="build-list";\n' + printf 'SELECT DISTINCT CONCAT("\\"split-package with differing sub_pkgrels on the build-list: ",`a`.`pkgname`)' + printf ' FROM `binary_packages` AS `a`' + printf ' JOIN `binary_packages` AS `b` ON `a`.`build_assignment`=`b`.`build_assignment`' + printf ' JOIN `repositories` AS `arep` ON `a`.`repository`=`arep`.`id`' + printf ' JOIN `repositories` AS `brep` ON `b`.`repository`=`brep`.`id`' + printf ' WHERE `a`.`sub_pkgrel`!=`b`.`sub_pkgrel`' + printf ' AND `%srep`.`name` = "build-list"' \ + 'a' 'b' + printf ';\n' } | \ ${mysql_command} --raw --batch | \ sed ' |