Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/return-assignment
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-22 13:57:14 +0100
committerErich Eckner <git@eckner.net>2018-01-22 13:57:14 +0100
commit423cf0b000964db5456f3238febac4809ef8f16c (patch)
tree7d5ab98041eaa1d861797caec9ede5e559c8cdf1 /bin/return-assignment
parent511834749b219fb3ea7f52dbe14a9634c156f0ac (diff)
bin/return-assignment: fix extraction of fail-reason identifier
Diffstat (limited to 'bin/return-assignment')
-rwxr-xr-xbin/return-assignment3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index 545d064..e14e93e 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -91,7 +91,8 @@ if [ "$5" = 'ERROR' ]; then
printf 'INSERT INTO `failures` (`date`,`reason`,`log_file`) VALUES'
fail_reason_identifiers=$(
printf 'SELECT `fail_reasons`.`id`,to_base64(`fail_reasons`.`identifier`) FROM `fail_reasons` ORDER BY `fail_reasons`.`severity`' | \
- ${mysql_command} --batch
+ ${mysql_command} --raw --batch | \
+ sed '1d'
)
for saved_build_log in ${saved_build_logs}; do
printf '%s' "${fail_reason_identifiers}" | \