summaryrefslogtreecommitdiff
path: root/bin/bootstrap-mysql
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-17 14:42:18 +0100
committerErich Eckner <git@eckner.net>2018-01-17 14:42:18 +0100
commit81a59864c510480973c17101869ddb8dbc810e1f (patch)
treeb1ebfac2b6f9da4c206165fd4a4d48288cd6478d /bin/bootstrap-mysql
parent72aa80b29963e4bca7e273463f4f62aeab5cc657 (diff)
downloadbuilder-81a59864c510480973c17101869ddb8dbc810e1f.tar.xz
bin/bootstrap-mysql: correctly set `repositories`.`is_on_master_mirror`
Diffstat (limited to 'bin/bootstrap-mysql')
-rwxr-xr-xbin/bootstrap-mysql21
1 files changed, 10 insertions, 11 deletions
diff --git a/bin/bootstrap-mysql b/bin/bootstrap-mysql
index e841d92..62d66d1 100755
--- a/bin/bootstrap-mysql
+++ b/bin/bootstrap-mysql
@@ -311,15 +311,15 @@ fi
sed 's|,;|;|'
for repo in \
- 'core:stable:1' \
- 'extra:stable:1' \
- 'community:stable:1' \
- 'build-support:standalone:1' \
- 'testing:testing:1' \
- 'community-testing:testing:1' \
- 'staging:staging:1' \
- 'community-staging:staging:1' \
- 'build-list:unbuilt:0'; do
+ 'core:stable:AQ=' \
+ 'extra:stable:AQ=' \
+ 'community:stable:AQ=' \
+ 'build-support:standalone:AQ=' \
+ 'testing:testing:AQ=' \
+ 'community-testing:testing:AQ=' \
+ 'staging:staging:AQ=' \
+ 'community-staging:staging:AQ=' \
+ 'build-list:unbuilt:AA='; do
# shellcheck disable=SC2016
printf 'INSERT IGNORE INTO `repositories` (`name`,`stability`,`is_on_master_mirror`) SELECT'
# shellcheck disable=SC2016
@@ -331,8 +331,7 @@ fi
)" \
"$(
printf '%s' "${repo}" | \
- cut -d: -f3 | \
- base64_encode_each
+ cut -d: -f3
)" \
"$(
printf '%s' "${repo}" | \