index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-01-27 09:16:54 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-01-27 09:16:54 +0100 |
commit | c5999ea29f2ad3bc6513aaf0f740a2ed03f10e8c (patch) | |
tree | 8a3d019c06cab7d1f97688b76bbcc559a7fdd616 /web-scripts/broken-packages.php | |
parent | d5dc2eca282380293ccd86bdf7327e580573ba64 (diff) |
-rw-r--r-- | web-scripts/broken-packages.php | 6 |
diff --git a/web-scripts/broken-packages.php b/web-scripts/broken-packages.php index b23b9bb..4980d17 100644 --- a/web-scripts/broken-packages.php +++ b/web-scripts/broken-packages.php @@ -13,7 +13,7 @@ if ($mysql->connect_error) { } $result = $mysql -> query( - "SELECT " . + "SELECT DISTINCT " . "`build_assignments`.`id`," . "`build_assignments`.`is_blocked`," . "`package_sources`.`pkgbase`," . @@ -36,7 +36,9 @@ $result = $mysql -> query( "FROM `build_assignments` " . "JOIN `package_sources` ON `build_assignments`.`package_source` = `package_sources`.`id` " . "JOIN `upstream_repositories` ON `package_sources`.`upstream_package_repository` = `upstream_repositories`.`id` " . - "WHERE `build_assignments`.`is_broken` OR `build_assignments`.`is_blocked` IS NOT NULL" + "JOIN `binary_packages` ON `binary_packages`.`build_assignment` = `build_assignments`.`id` " . + "JOIN `repositories` ON `binary_packages`.`repository` = `repositories`.`id` " . + "WHERE (`build_assignments`.`is_broken` OR `build_assignments`.`is_blocked` IS NOT NULL) AND `repositories`.`name`=\"build-list\"" ); if ($result -> num_rows > 0) { |