diff options
author | Erich Eckner <git@eckner.net> | 2018-05-30 13:54:23 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-05-30 13:54:23 +0200 |
commit | bec12d71041dcfe0822bda36c740ee5f8a6260a3 (patch) | |
tree | 5ba76001d666495462f6cb6579d3502f58c02c13 /bin/copy-to-build-support | |
parent | bec9b3588a9cbe69c85646a6f708d61b8dbbe78f (diff) | |
download | builder-bec12d71041dcfe0822bda36c740ee5f8a6260a3.tar.xz |
bin/copy-to-build-support: do not write `binary_packages`.`repository`
Diffstat (limited to 'bin/copy-to-build-support')
-rwxr-xr-x | bin/copy-to-build-support | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/bin/copy-to-build-support b/bin/copy-to-build-support index dc45d07..f4647e1 100755 --- a/bin/copy-to-build-support +++ b/bin/copy-to-build-support @@ -133,17 +133,15 @@ sed -n ' # shellcheck disable=SC2016 { - printf 'INSERT IGNORE INTO `binary_packages`' - printf ' (`repository`' + printf 'INSERT IGNORE INTO `binary_packages` (' # shellcheck disable=SC2086 - printf ',`%s`' ${to_copy} + printf ',`%s`' ${to_copy} | \ + sed 's/^,//' printf ')' printf ' SELECT' - # shellcheck disable=SC2154 - printf ' %s' \ - "${repository_ids__i686_build_support}" # shellcheck disable=SC2086 - printf ',`binary_packages`.`%s`' ${to_copy} + printf ',`binary_packages`.`%s`' ${to_copy} | \ + sed 's/^,//' printf ' FROM `binary_packages`' mysql_join_binary_packages_architectures printf ' WHERE' @@ -151,6 +149,7 @@ sed -n ' "${id}" printf 'INSERT IGNORE INTO `binary_packages_in_repositories`' printf ' (`repository`,`package`)' + # shellcheck disable=SC2154 printf ' SELECT %s,LAST_INSERT_ID();\n' \ "${repository_ids__i686_build_support}" } >> \ |