From 5a45a6cc3fde83f725bcd7939bea254636c9b935 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 14 May 2018 16:04:20 +0200 Subject: bin/return-assignment: fix some mysql queries --- bin/return-assignment | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bin/return-assignment') diff --git a/bin/return-assignment b/bin/return-assignment index 84c57f5..bf5d6ab 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -260,7 +260,8 @@ infos=$( printf ' AND `binary_packages`.`sub_pkgrel`=from_base64("%s");\n' \ "$(printf '%s' "$5" | base64 -w0)" } | \ - mysql_run_query + mysql_run_query | \ + tr '\t' ' ' ) if [ -z "${infos}" ]; then @@ -469,7 +470,7 @@ if [ -z "${infos}" ]; then >&2 echo 'This is some internal error and not (necessarily) your fault.' # We give a temporary error (although resolving this needs manual # intervention), because there is nothing wrong with the sent package - # whence it does not neet to be built again, but can simply be sent again. + # whence it does not need to be built again, but can simply be sent again. exit 1 fi @@ -572,7 +573,7 @@ trigger_mirror_refreshs # remove from build-list printf 'UPDATE `binary_packages`' printf ' SET' - printf ' `binary_packages`.`repository`=from_base64("%s")' \ + printf ' `binary_packages`.`repository`=from_base64("%s"),' \ "$( printf '%s' "${destination_id}" | \ base64 -w0 -- cgit v1.2.3-54-g00ecf