summaryrefslogtreecommitdiffstats
path: root/web/template
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2015-09-17 19:15:47 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-09-17 23:04:58 +0200
commit9d2d8f1c8c1cbc65d0842544e1803d95e8a5b130 (patch)
tree67baa960aa5e39aa2f4bdcd8edef0e9beea648e0 /web/template
parentdd808ac8023175f940f54746fc69f9a61a80fc03 (diff)
downloadaur-9d2d8f1c8c1cbc65d0842544e1803d95e8a5b130.tar.gz
aur-9d2d8f1c8c1cbc65d0842544e1803d95e8a5b130.tar.xz
Honor virtual provisions in package requirements
Implements FS#14125. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/template')
-rw-r--r--web/template/pkg_details.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php
index 0a2d90eb..b9fd51ba 100644
--- a/web/template/pkg_details.php
+++ b/web/template/pkg_details.php
@@ -40,9 +40,6 @@ $out_of_date_time = ($row["OutOfDateTS"] == 0) ? $msg : gmdate("Y-m-d", intval($
$lics = pkg_licenses($row["ID"]);
$grps = pkg_groups($row["ID"]);
-$deps = pkg_dependencies($row["ID"]);
-$requiredby = pkg_required($row["Name"]);
-
usort($deps, function($x, $y) {
if ($x[1] != $y[1]) {
if ($x[1] == "depends") {
@@ -83,6 +80,9 @@ foreach ($rels as $rel) {
}
}
+$deps = pkg_dependencies($row["ID"]);
+$requiredby = pkg_required($row["Name"], $rels_p);
+
# $sources[0] = 'src';
$sources = pkg_sources($row["ID"]);
@@ -285,7 +285,7 @@ endif;
<?php if (count($requiredby) > 0): ?>
<ul id="pkgreqslist">
<?php while (list($k, $darr) = each($requiredby)): ?>
- <li><?= pkg_requiredby_link($darr[0], $darr[1], $darr[2]); ?></li>
+ <li><?= pkg_requiredby_link($darr[0], $darr[1], $darr[2], $darr[3], $row['Name']); ?></li>
<?php endwhile; ?>
</ul>
<?php endif; ?>