summaryrefslogtreecommitdiff
path: root/web-scripts
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-27 09:16:54 +0100
committerErich Eckner <git@eckner.net>2018-01-27 09:16:54 +0100
commitc5999ea29f2ad3bc6513aaf0f740a2ed03f10e8c (patch)
tree8a3d019c06cab7d1f97688b76bbcc559a7fdd616 /web-scripts
parentd5dc2eca282380293ccd86bdf7327e580573ba64 (diff)
downloadbuilder-c5999ea29f2ad3bc6513aaf0f740a2ed03f10e8c.tar.xz
web-scripts/broken-packages.php: only show packages on the build-list
Diffstat (limited to 'web-scripts')
-rw-r--r--web-scripts/broken-packages.php6
1 files changed, 4 insertions, 2 deletions
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) {