Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/copy-to-build-support
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-30 13:54:23 +0200
committerErich Eckner <git@eckner.net>2018-05-30 13:54:23 +0200
commitbec12d71041dcfe0822bda36c740ee5f8a6260a3 (patch)
tree5ba76001d666495462f6cb6579d3502f58c02c13 /bin/copy-to-build-support
parentbec9b3588a9cbe69c85646a6f708d61b8dbbe78f (diff)
bin/copy-to-build-support: do not write `binary_packages`.`repository`
Diffstat (limited to 'bin/copy-to-build-support')
-rwxr-xr-xbin/copy-to-build-support13
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}"
} >> \