[aur-dev] [PATCH] Fix dependency sorting
Lukas Fleischer
lfleischer at archlinux.org
Sat Oct 3 09:16:21 UTC 2015
Fixes a regression introduced in 9d2d8f1 (Honor virtual provisions in
package requirements, 2015-09-17).
Signed-off-by: Lukas Fleischer <lfleischer at archlinux.org>
---
web/template/pkg_details.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php
index b9fd51b..8b038b9 100644
--- a/web/template/pkg_details.php
+++ b/web/template/pkg_details.php
@@ -40,6 +40,8 @@ $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"]);
+
usort($deps, function($x, $y) {
if ($x[1] != $y[1]) {
if ($x[1] == "depends") {
@@ -80,7 +82,6 @@ foreach ($rels as $rel) {
}
}
-$deps = pkg_dependencies($row["ID"]);
$requiredby = pkg_required($row["Name"], $rels_p);
# $sources[0] = 'src';
--
2.6.0
More information about the aur-dev
mailing list