summaryrefslogtreecommitdiff
path: root/lib/mysql-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-09-14 11:00:04 +0200
committerErich Eckner <git@eckner.net>2018-09-14 11:00:04 +0200
commitb4a3d61b3f51cbdf5af23002ede2fbf08cd9f3a9 (patch)
tree74ae0cc30f155cfd27633b7c430e27f2fbbdeef6 /lib/mysql-functions
parentdd10a4f0c1d4f4d7957fd1778916b9e2a37c0c84 (diff)
downloadbuilder-b4a3d61b3f51cbdf5af23002ede2fbf08cd9f3a9.tar.xz
use i486 in more places
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-xlib/mysql-functions9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 3006262..31bdfd0 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -604,7 +604,14 @@ mysql_sanity_check() {
temp_dir=$(mktemp -d 'tmp.mysql-functions.mysql_sanity_check.XXXXXXXXXX' --tmpdir)
trap 'rm -rf --one-file-system "${temp_dir}"' EXIT
- for arch in 'i486' 'i686'; do
+ {
+ printf 'SELECT DISTINCT `architectures`.`name`'
+ printf ' FROM `architectures`'
+ printf ' WHERE `architectures`.`id`!=%s;\n' \
+ "${architecture_ids__any}"
+ } | \
+ mysql_run_query | \
+ while read -r arch; do
for dir in $(ls_master_mirror "${arch}"); do
ls_master_mirror "${arch}/${dir}" | \
sed '