From d5c7c741037cbfe13ae1f4fbfd6680c19eb2b6fd Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 30 May 2018 14:02:28 +0200 Subject: lib/mysql-functions: do not write `binary_packages`.`repository` --- lib/mysql-functions | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/mysql-functions') 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}" -- cgit v1.2.3-70-g09d2