From 66d12f0c377074a37a851871aeed426177b0de4a Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 24 Oct 2015 18:56:08 +0200 Subject: Highlight broken dependencies If a dependency neither exists in the official repositories nor in the AUR, make it appear bold red. Signed-off-by: Lukas Fleischer --- web/lib/pkgfuncs.inc.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'web/lib/pkgfuncs.inc.php') diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php index 3108241..cedc360 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 = ''; + $link .= htmlspecialchars($name); + $link .= ''; + $link .= htmlspecialchars($cond) . ' '; + $link .= pkg_deplink_annotation($type, $arch, $desc); + return $link; + } + $link = htmlspecialchars($name); foreach ($providers as $provider) { if ($provider[1] == $name) { -- cgit v1.2.3-70-g09d2