Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/wtf
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wtf')
-rwxr-xr-xbin/wtf6
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/wtf b/bin/wtf
index b3e29a6..4c03103 100755
--- a/bin/wtf
+++ b/bin/wtf
@@ -32,11 +32,9 @@ result=$(
printf ' FROM `binary_packages`'
mysql_join_binary_packages_architectures
mysql_join_binary_packages_repositories
- mysql_join_binary_packages_file_providers
- printf ' PARTITION (p%s)' \
+ printf ' JOIN `file_providers` PARTITION (p%s) ON `file_providers`.`package`=`binary_packages`.`id`' \
"${partition}"
- mysql_join_file_providers_files
- printf ' PARTITION (p%s)' \
+ printf ' JOIN `files` PARTITION (p%s) ON `files`.`id`=`file_providers`.`file` AND `files`.`name_hash`=`file_providers`.`file_name_hash`' \
"${partition}"
printf ' WHERE `files`.`name_hash`=%s' \
"${hash}"