summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/html/css/aurweb.css5
-rw-r--r--web/lib/pkgfuncs.inc.php9
2 files changed, 14 insertions, 0 deletions
diff --git a/web/html/css/aurweb.css b/web/html/css/aurweb.css
index 4fb256f9..11af7471 100644
--- a/web/html/css/aurweb.css
+++ b/web/html/css/aurweb.css
@@ -147,3 +147,8 @@ label.confirmation,
#merge-into {
width: auto;
}
+
+#pkgdepslist .broken {
+ color: red;
+ font-weight: bold;
+}
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index 31082415..cedc360e 100644
--- a/web/lib/pkgfuncs.inc.php
+++ b/web/lib/pkgfuncs.inc.php
@@ -336,6 +336,15 @@ function pkg_depend_link($name, $type, $cond, $arch, $pkg_id) {
*/
$providers = pkg_providers($name);
+ if (count($providers) == 0) {
+ $link = '<span class="broken">';
+ $link .= htmlspecialchars($name);
+ $link .= '</span>';
+ $link .= htmlspecialchars($cond) . ' ';
+ $link .= pkg_deplink_annotation($type, $arch, $desc);
+ return $link;
+ }
+
$link = htmlspecialchars($name);
foreach ($providers as $provider) {
if ($provider[1] == $name) {