index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/check-mirrors | 6 |
diff --git a/bin/check-mirrors b/bin/check-mirrors index aec33a0..8e782d5 100755 --- a/bin/check-mirrors +++ b/bin/check-mirrors @@ -5,6 +5,8 @@ if [ $# -eq 0 ]; then + echo 'updating mirrors from git...' >&2 + if [ -d "${releng_directory}/.git" ]; then git -C "${releng_directory}" remote update else @@ -54,6 +56,8 @@ if [ $# -eq 0 ]; then parallel -j10 "$0" "{}" > \ "${tmp_file}" + echo 'loading mirror data into database...' >&2 + # shellcheck disable=SC2016 { printf 'LOAD DATA LOCAL INFILE "%s" INTO TABLE `mirror_statuses` (' \ @@ -83,6 +87,8 @@ if [ $# -eq 0 ]; then } | \ mysql_run_query + echo 'done' >&2 + elif [ $# -eq 1 ]; then # check a single mirror url="$1" |