summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/mysql-functions7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index aa6a5ee..2bc2fbe 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -9,9 +9,6 @@ if [ -z "${base_dir}" ]; then
. '../lib/load-configuration'
fi
-# TODO: replace most/all insert-select queries by separate select and insert
-# queries
-
# base64_encode_each encode each line of stdin with base64
base64_encode_each() {
@@ -435,8 +432,8 @@ mysql_generate_package_metadata() {
printf ' WHERE `links`.`type`="arch";\n'
printf 'INSERT IGNORE INTO `binary_packages_in_repositories` ('
- printf ' `package`'
- printf ' `repository`'
+ printf ' `package`,'
+ printf '`repository`'
printf ') SELECT'
printf ' `binary_packages`.`id`,'
printf '%s' \