Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/packages/pkginfo.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-01-20 20:04:42 +0100
committerErich Eckner <git@eckner.net>2019-01-20 20:04:58 +0100
commiteec594a89a7c59b90357c6a0d9ca4a5f481dfb57 (patch)
tree69b894e3e0d37483f402cbbaaaab08497ba0ebc6 /packages/pkginfo.php
parentfb9f877ce42a69f8f36b2251e0726ea59d238220 (diff)
packages/pkginfo.php: use mysql_query_package_version()
Diffstat (limited to 'packages/pkginfo.php')
-rw-r--r--packages/pkginfo.php16
1 files changed, 4 insertions, 12 deletions
diff --git a/packages/pkginfo.php b/packages/pkginfo.php
index 2081bbc..83ea3bb 100644
--- a/packages/pkginfo.php
+++ b/packages/pkginfo.php
@@ -65,12 +65,8 @@ require_once BASE . "/lib/style.php";
"`binary_packages`.`pkgname`," .
"`sp_q`.`split_packages`," .
"`package_sources`.`pkgbase`," .
- "CONCAT(" .
- "IF(`binary_packages`.`epoch`=\"0\",\"\",CONCAT(`binary_packages`.`epoch`,\":\"))," .
- "`binary_packages`.`pkgver`,\"-\"," .
- "`binary_packages`.`pkgrel`,\".\"," .
- "`binary_packages`.`sub_pkgrel`" .
- ") AS `version`," .
+ mysql_query_package_version("binary_packages") .
+ " AS `version`," .
"`repositories`.`stability` AS `repo_stability`," .
"`repository_stabilities`.`name` AS `repo_stability_name`," .
"`repositories`.`name` AS `repo`," .
@@ -345,12 +341,8 @@ require_once BASE . "/lib/style.php";
"`repositories`.`is_on_master_mirror`," .
"`architectures`.`name` AS `arch`," .
"`r_a`.`name` AS `repo_arch`," .
- "CONCAT(" .
- "IF(`binary_packages`.`epoch`=\"0\",\"\",CONCAT(`binary_packages`.`epoch`,\":\"))," .
- "`binary_packages`.`pkgver`,\"-\"," .
- "`binary_packages`.`pkgrel`,\".\"," .
- "`binary_packages`.`sub_pkgrel`" .
- ") AS `version`" .
+ mysql_query_package_version("binary_packages") .
+ " AS `version`" .
" FROM `binary_packages` " .
mysql_join_binary_packages_architectures() .
mysql_join_binary_packages_binary_packages_in_repositories() .