summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2015-10-03 11:12:18 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-10-03 11:12:18 +0200
commitd18a9638c6212eeb29cd52ab312ea716be4179cc (patch)
treeb8c2e5c108472b5261f500889ec574100597e957 /web
parentf5b4f7e996a095dbc04305cb32a89c700f585acd (diff)
downloadaur-d18a9638c6212eeb29cd52ab312ea716be4179cc.tar.gz
aur-d18a9638c6212eeb29cd52ab312ea716be4179cc.tar.xz
Fix dependency sorting
Fixes a regression introduced in 9d2d8f1 (Honor virtual provisions in package requirements, 2015-09-17). Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web')
-rw-r--r--web/template/pkg_details.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php
index b9fd51ba..8b038b9b 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';