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:
authorAndreas Baumann <mail@andreasbaumann.cc>2022-06-03 11:55:52 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2022-06-03 11:55:52 +0200
commitb8752770452ffea0bf1ce21a8f9bef186ba8fc12 (patch)
tree1e677bad78932b9793bba8903d36604477b07818 /bin/check-mirrors
parente7df9a4f5aa42a5a59fe715365532cc9323c77e9 (diff)
check-mirrors: be a little bit more verbose (timer was not running on buildmaster)
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"