summaryrefslogtreecommitdiff
path: root/bin/db-update
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-01 09:05:51 +0100
committerErich Eckner <git@eckner.net>2018-03-01 09:05:51 +0100
commit496c571cd233a8646351ba241c3119ceaf2b8063 (patch)
tree3018e0a5a4ed78158c57a5b09d4b9e87fd3246d5 /bin/db-update
parent6047f2686cfe623e08fbaf4eae0a552ded731eb1 (diff)
downloadbuilder-496c571cd233a8646351ba241c3119ceaf2b8063.tar.xz
use "mysql -N" instead of cumbersome sedding
Diffstat (limited to 'bin/db-update')
-rwxr-xr-xbin/db-update14
1 files changed, 4 insertions, 10 deletions
diff --git a/bin/db-update b/bin/db-update
index 534c245..78ff622 100755
--- a/bin/db-update
+++ b/bin/db-update
@@ -457,11 +457,8 @@ errors=$(
printf ' JOIN `repository_stabilities` ON `repository_stability_relations`.`more_stable`=`repository_stabilities`.`id`'
printf ' WHERE `repository_stabilities`.`name` = "testing"'
} | \
- mysql_run_query --raw --batch | \
- sed '
- 1d
- p
- '
+ mysql_run_query -N --raw --batch | \
+ sed 'p'
# shellcheck disable=SC2086
printf '%s\n' ${packages_to_force_stabilize} | \
sort -u
@@ -496,11 +493,8 @@ errors=$(
printf ' JOIN `repository_stabilities` ON `repository_stability_relations`.`more_stable`=`repository_stabilities`.`id`'
printf ' WHERE `repository_stabilities`.`name` = "staging"'
} | \
- mysql_run_query --raw --batch | \
- sed '
- 1d
- p
- '
+ mysql_run_query -N --raw --batch | \
+ sed 'p'
# shellcheck disable=SC2086
printf '%s\n' ${packages_to_force_unstage} | \
sort -u