summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-31 10:43:48 +0200
committerErich Eckner <git@eckner.net>2018-05-31 10:43:48 +0200
commitd83aecc92e8bbb847b49fc2be4ba4facd1f17795 (patch)
tree0e21bda3888a352221166fa182d30e60440e56e7 /lib
parenta7a1b30eb62c82b95e5cacf938aedc091bd4c1c3 (diff)
downloadbuilder-d83aecc92e8bbb847b49fc2be4ba4facd1f17795.tar.xz
lib/mysql-functions: add table names to query
Diffstat (limited to 'lib')
-rwxr-xr-xlib/mysql-functions9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index b637afc..0aad61a 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -684,7 +684,14 @@ mysql_sanity_check() {
"${temp_dir}/master-mirror-listing"
{
- printf 'SELECT `r_a`.`name`,`repositories`.`name`,`pkgname`,`epoch`,`pkgver`,`pkgrel`,`sub_pkgrel`,`architectures`.`name`'
+ printf 'SELECT `r_a`.`name`,`repositories`.`name`,'
+ printf '`binary_packages`.`%s`,' \
+ 'pkgname' \
+ 'epoch' \
+ 'pkgver' \
+ 'pkgrel' \
+ 'sub_pkgrel'
+ printf '`architectures`.`name`'
printf ' FROM `binary_packages`'
mysql_join_binary_packages_architectures
mysql_join_binary_packages_binary_packages_in_repositories