summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-14 16:04:20 +0200
committerErich Eckner <git@eckner.net>2018-05-14 16:04:20 +0200
commit5a45a6cc3fde83f725bcd7939bea254636c9b935 (patch)
tree30ca4e10d41f475dbfd065179dcc72c11ad33930 /bin
parentf3905f25bb4eb33cd8ac18437014f9436c00b11a (diff)
downloadbuilder-5a45a6cc3fde83f725bcd7939bea254636c9b935.tar.xz
bin/return-assignment: fix some mysql queries
Diffstat (limited to 'bin')
-rwxr-xr-xbin/return-assignment7
1 files changed, 4 insertions, 3 deletions
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