summaryrefslogtreecommitdiff
path: root/packages/pkginfo.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-14 11:47:22 +0200
committerErich Eckner <git@eckner.net>2018-04-14 11:47:22 +0200
commit4ae4235765ada9beb32f84c7096fdefced3842e7 (patch)
tree63ee84d108468c2a5d56ad0729831f26e0904eed /packages/pkginfo.php
parenta353a755515c61dd1b5ce03ec16ef5f9430e4e23 (diff)
downloadarchweb32-4ae4235765ada9beb32f84c7096fdefced3842e7.tar.xz
packages/pkginfo.php: order by dependency types
Diffstat (limited to 'packages/pkginfo.php')
-rw-r--r--packages/pkginfo.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/pkginfo.php b/packages/pkginfo.php
index aca9b86..1ff3eb5 100644
--- a/packages/pkginfo.php
+++ b/packages/pkginfo.php
@@ -97,7 +97,8 @@
" AND `repository_stability_relations`.`less_stable`=" . $mysql_content["repo_stability"] .
") ON `install_target_providers`.`install_target`=`dependencies`.`depending_on`" .
" WHERE `dependencies`.`dependent`=" . $mysql_content["id"] .
- " GROUP BY `install_targets`.`id`"
+ " GROUP BY `install_targets`.`id`" .
+ " ORDER BY FIELD (`dependency_types`.`name`,\"run\",\"make\",\"check\",\"link\")"
))
die_500("Query failed: " . $mysql->error);
@@ -158,6 +159,7 @@
" AND `repository_stability_relations`.`more_stable`=" . $mysql_content["repo_stability"] .
" WHERE `install_target_providers`.`package`=" . $mysql_content["id"] .
" GROUP BY `binary_packages`.`id`"
+ " ORDER BY FIELD (`dependency_types`.`name`,\"run\",\"make\",\"check\",\"link\")"
))
die_500("Query failed: " . $mysql->error);