mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
Display (reverse) optional dependencies as "Required by"
Also, change pkg_required() such that the returned array has the same structure as the result of pkg_dependencies(). Fixes FS#45452. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
b1e3bfb48f
commit
d1c331613d
2 changed files with 11 additions and 11 deletions
|
@ -359,12 +359,9 @@ endif;
|
|||
<h3><?= __('Required by') . " (" . count($requiredby) . ")"?></h3>
|
||||
<?php if (count($requiredby) > 0): ?>
|
||||
<ul id="pkgreqslist">
|
||||
<?php
|
||||
# darr: (PackageName, PackageID)
|
||||
while (list($k, $darr) = each($requiredby)):
|
||||
?>
|
||||
<li><a href="<?= htmlspecialchars(get_pkg_uri($darr[0]), ENT_QUOTES); ?>" title="<?= __('View packages details for').' ' . htmlspecialchars($darr[0]) ?>"><?= htmlspecialchars($darr[0]) ?></a></li>
|
||||
<?php endwhile; ?>
|
||||
<?php while (list($k, $darr) = each($requiredby)): ?>
|
||||
<li><?= pkg_depend_link($darr[0], $darr[1], $darr[2], $darr[3], $darr[4], false); ?></li>
|
||||
<?php endwhile; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue