Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/web-scripts
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-17 18:05:13 +0100
committerErich Eckner <git@eckner.net>2018-03-17 18:05:13 +0100
commit66914531d268cb27a7a70aa747eb11625ee1a098 (patch)
treed4d9a018e838b9201bd73047735704b7dc364d0e /web-scripts
parent861171fbba068d6a88ef44b472771ea582e17a90 (diff)
web-scripts/mysql-issues.php: show by which package a broken package can be replaced
Diffstat (limited to 'web-scripts')
-rwxr-xr-xweb-scripts/mysql-issues.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/web-scripts/mysql-issues.php b/web-scripts/mysql-issues.php
index 8de8937..485bc21 100755
--- a/web-scripts/mysql-issues.php
+++ b/web-scripts/mysql-issues.php
@@ -27,7 +27,8 @@
"`binary_packages`.`sub_pkgrel`,\"-\"," .
"`architectures`.`name`) AS `pkgfile`," .
"`install_targets`.`name` AS `install_target`," .
- "IF(`binary_packages`.`is_to_be_deleted`,1,0) AS `is_to_be_deleted`" .
+ "IF(`binary_packages`.`is_to_be_deleted`,1,0) AS `is_to_be_deleted`," .
+ "`subst_r`.`name` AS `subst_repository`" .
" FROM `binary_packages`" .
" JOIN `repositories` ON `binary_packages`.`repository`=`repositories`.`id`" .
" AND `repositories`.`is_on_master_mirror`" .
@@ -36,6 +37,13 @@
" AND `dependency_types`.`relevant_for_binary_packages`" .
" JOIN `install_targets` ON `dependencies`.`depending_on`=`install_targets`.`id`" .
" JOIN `architectures` ON `binary_packages`.`architecture`=`architectures`.`id`" .
+ " LEFT JOIN (`binary_packages` AS `subst_bp`" .
+ " JOIN `repositories` AS `subst_r` ON `subst_bp`.`repository`=`subst_r`.`id`" .
+ " JOIN `repository_stability_relations` ON `repository_stability_relations`.`less_stable`=`subst_r`.`id`" .
+ ")" .
+ " ON `subst_bp`.`pkgname`=`binary_packages`.`pkgname`" .
+ " AND `subst_bp`.`id`!=`binary_packages`.`id`" .
+ " AND `repository_stability_relations`.`more_stable`=`repositories`.`id`" .
" WHERE NOT EXISTS (" .
"SELECT * FROM `install_target_providers`" .
" WHERE `install_target_providers`.`install_target` = `dependencies`.`depending_on`" .
@@ -54,7 +62,10 @@
print "<font color=\"#00ff00\">(marked as to-be-deleted) ";
else
print "<font color=\"#ff0000\">";
- print $row["pkgfile"] . " depends on " . $row["install_target"] . " which is not provided by any package.<br>";
+ 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"];
+ print ".<br>";
print "</font>\n";
}