index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-01-20 20:04:42 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-01-20 20:04:58 +0100 |
commit | eec594a89a7c59b90357c6a0d9ca4a5f481dfb57 (patch) | |
tree | 69b894e3e0d37483f402cbbaaaab08497ba0ebc6 | |
parent | fb9f877ce42a69f8f36b2251e0726ea59d238220 (diff) |
-rw-r--r-- | packages/pkginfo.php | 16 |
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() . |