index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-09-12 09:47:57 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-09-12 09:47:57 +0200 |
commit | 62791f8500bad684a3e74f5ea88851f485c21143 (patch) | |
tree | 32f15d8a128d172cf53ae4f6141d5ba6b43afc20 /packages | |
parent | 3845c00479fe9ba96fc7f206a71a79ee3b453586 (diff) |
-rw-r--r-- | packages/pkginfo.php | 7 |
diff --git a/packages/pkginfo.php b/packages/pkginfo.php index ad127e5..58d74c1 100644 --- a/packages/pkginfo.php +++ b/packages/pkginfo.php @@ -19,7 +19,7 @@ require_once BASE . "/lib/style.php"; $json_content = $json_content["package"]; $mysql_result = mysql_run_query( - "SELECT DISTINCT " . + "SELECT " . "`binary_packages`.`id`," . "`binary_packages`.`pkgname`," . "`package_sources`.`pkgbase`," . @@ -36,7 +36,7 @@ require_once BASE . "/lib/style.php"; "`git_repositories`.`name` AS `git_repo`," . "`package_sources`.`uses_upstream`," . "`package_sources`.`uses_modification`," . - "`binary_packages_in_repositories`.`last_moved`," . + "MAX(`binary_packages_in_repositories`.`last_moved`)," . "`sr`.`name` AS `stable_repo`" . " FROM `binary_packages`" . " JOIN `architectures` ON `binary_packages`.`architecture`=`architectures`.`id`" . @@ -56,7 +56,8 @@ require_once BASE . "/lib/style.php"; "SELECT 1" . " FROM `repository_moves` AS `rm`" . " WHERE `rm`.`from_repository`=`sr`.`id`" . - ")" + ")" . + " GROUP BY `binary_packages`.`id`" ); if ($mysql_result -> num_rows != 1) |