summaryrefslogtreecommitdiff
path: root/lib/mysql-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-30 14:02:28 +0200
committerErich Eckner <git@eckner.net>2018-05-30 14:02:28 +0200
commitd5c7c741037cbfe13ae1f4fbfd6680c19eb2b6fd (patch)
tree0fe9480207ad450753defeb68e2dc6defc3450e6 /lib/mysql-functions
parent1721f3fea6211da107037eb6e05899f3453f187b (diff)
downloadbuilder-d5c7c741037cbfe13ae1f4fbfd6680c19eb2b6fd.tar.xz
lib/mysql-functions: do not write `binary_packages`.`repository`
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-xlib/mysql-functions5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 8e295aa..1fafd52 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -456,7 +456,6 @@ mysql_generate_package_metadata() {
printf 'INSERT IGNORE INTO `binary_packages` ('
printf '`%s`,' \
'build_assignment' \
- 'repository' \
'architecture' \
'epoch' \
'pkgver' \
@@ -468,8 +467,7 @@ mysql_generate_package_metadata() {
'is_to_be_deleted'
printf ') SELECT '
printf '%s,' \
- "${build_assignment_id}" \
- "${current_repository_id}"
+ "${build_assignment_id}"
printf '`%s`.`id`,' \
'architectures'
printf 'from_base64("%s"),' \
@@ -483,7 +481,6 @@ mysql_generate_package_metadata() {
printf ' `architectures`.`name` = from_base64("%s")' \
"${arch}"
printf ';\n'
- printf 'COMMIT;\n'
printf 'INSERT IGNORE INTO `binary_packages_in_repositories` (`package`,`repository`)'
printf ' SELECT LAST_INSERT_ID(),%s;\n' \
"${current_repository_id}"