From d18a9638c6212eeb29cd52ab312ea716be4179cc Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 3 Oct 2015 11:12:18 +0200 Subject: Fix dependency sorting Fixes a regression introduced in 9d2d8f1 (Honor virtual provisions in package requirements, 2015-09-17). Signed-off-by: Lukas Fleischer --- web/template/pkg_details.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'web/template') 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'; -- cgit v1.2.3-70-g09d2