Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/check-mirrors
diff options
context:
space:
mode:
Diffstat (limited to 'bin/check-mirrors')
-rwxr-xr-xbin/check-mirrors6
1 files changed, 6 insertions, 0 deletions
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"