From c5999ea29f2ad3bc6513aaf0f740a2ed03f10e8c Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 27 Jan 2018 09:16:54 +0100 Subject: web-scripts/broken-packages.php: only show packages on the build-list --- web-scripts/broken-packages.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'web-scripts/broken-packages.php') 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) { -- cgit v1.2.3-70-g09d2