index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
-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() . |