Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/packages/index.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-30 13:37:54 +0200
committerErich Eckner <git@eckner.net>2018-05-30 13:37:54 +0200
commit857bd3fa11b0680f1a1ca482948ecc0a1110a478 (patch)
tree246f43a987fc7d0125107a287be2e05a917a9fe1 /packages/index.php
parent82e16bd24ef847b86321f25a8dd416c813b970f9 (diff)
do not read `binary_packages`.`repository`
Diffstat (limited to 'packages/index.php')
-rw-r--r--packages/index.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/index.php b/packages/index.php
index 53bfb1d..d09d75f 100644
--- a/packages/index.php
+++ b/packages/index.php
@@ -64,7 +64,8 @@
$query = " FROM `binary_packages`" .
" JOIN `architectures` ON `architectures`.`id`=`binary_packages`.`architecture`" .
- " JOIN `repositories` ON `repositories`.`id`=`binary_packages`.`repository`" .
+ " JOIN `binary_packages_in_repositories` ON `binary_packages`.`id`=`binary_packages_in_repositories`.`package`" .
+ " JOIN `repositories` ON `binary_packages_in_repositories`.`repository`=`repositories`.`id`" .
" AND `repositories`.`is_on_master_mirror`" .
" JOIN `build_assignments` ON `build_assignments`.`id`=`binary_packages`.`build_assignment`" .
$filter . $exact_filter .
@@ -136,7 +137,8 @@
$query = " FROM `binary_packages`" .
" JOIN `architectures` ON `architectures`.`id`=`binary_packages`.`architecture`" .
- " JOIN `repositories` ON `repositories`.`id`=`binary_packages`.`repository`" .
+ " JOIN `binary_packages_in_repositories` ON `binary_packages`.`id`=`binary_packages_in_repositories`.`package`" .
+ " JOIN `repositories` ON `binary_packages_in_repositories`.`repository`=`repositories`.`id`" .
" AND `repositories`.`is_on_master_mirror`" .
" JOIN `build_assignments` ON `build_assignments`.`id`=`binary_packages`.`build_assignment`" .
$filter . $fuzzy_filter .