summaryrefslogtreecommitdiff
path: root/web-scripts
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-17 20:14:35 +0100
committerErich Eckner <git@eckner.net>2018-03-17 20:14:35 +0100
commit5050d2272c44a1de655f914aa0181135d7de6f45 (patch)
treedead81b67333969c78d07f5f371a3aa0a83d1128 /web-scripts
parentfe270739334afaa072b7e7b43f9828a527250108 (diff)
downloadbuilder-5050d2272c44a1de655f914aa0181135d7de6f45.tar.xz
web-scripts/mysql-issues.php: show if a package is already rescheduled
Diffstat (limited to 'web-scripts')
-rwxr-xr-xweb-scripts/mysql-issues.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/web-scripts/mysql-issues.php b/web-scripts/mysql-issues.php
index 485bc21..2f1d99d 100755
--- a/web-scripts/mysql-issues.php
+++ b/web-scripts/mysql-issues.php
@@ -28,7 +28,8 @@
"`architectures`.`name`) AS `pkgfile`," .
"`install_targets`.`name` AS `install_target`," .
"IF(`binary_packages`.`is_to_be_deleted`,1,0) AS `is_to_be_deleted`," .
- "`subst_r`.`name` AS `subst_repository`" .
+ "`subst_r`.`name` AS `subst_repository`," .
+ "`subst_buildlist_bp`.`id` AS `subst_buildlist`" .
" FROM `binary_packages`" .
" JOIN `repositories` ON `binary_packages`.`repository`=`repositories`.`id`" .
" AND `repositories`.`is_on_master_mirror`" .
@@ -44,6 +45,11 @@
" ON `subst_bp`.`pkgname`=`binary_packages`.`pkgname`" .
" AND `subst_bp`.`id`!=`binary_packages`.`id`" .
" AND `repository_stability_relations`.`more_stable`=`repositories`.`id`" .
+ " LEFT JOIN (`binary_packages` AS `subst_buildlist_bp`" .
+ " JOIN `repositories` AS `subst_buildlist_r`" .
+ " ON `subst_buildlist_bp`.`repository`=`subst_buildlist_r`.`id`" .
+ " AND `subst_buildlist_r`.`name`=\"build-list\"".
+ ") ON `subst_buildlist_bp`.`pkgname`=`binary_packages`.`pkgname`" .
" WHERE NOT EXISTS (" .
"SELECT * FROM `install_target_providers`" .
" WHERE `install_target_providers`.`install_target` = `dependencies`.`depending_on`" .
@@ -65,6 +71,8 @@
print $row["pkgfile"] . " depends on " . $row["install_target"] . " which is not provided by any package";
if (isset($row["subst_repository"]))
print " - but can be replaced by the one in " . $row["subst_repository"];
+ elseif (isset($row["subst_buildlist"]))
+ print " - but is already rescheduled";
print ".<br>";
print "</font>\n";
}