Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/build-master-status
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-21 11:08:11 +0200
committerErich Eckner <git@eckner.net>2017-06-21 11:08:11 +0200
commit2a84dd8adfed7fdff1c553908ecb353944000b63 (patch)
treedca176088e05cbebc2624e54cf4160e4f8b59343 /bin/build-master-status
parent9bac2cc501cad9d14c5233e618fd6640b29d78ca (diff)
bin/build-master-status: introduce and use new function ls_master_mirror
Diffstat (limited to 'bin/build-master-status')
-rwxr-xr-xbin/build-master-status17
1 files changed, 7 insertions, 10 deletions
diff --git a/bin/build-master-status b/bin/build-master-status
index 44596ef..69274a3 100755
--- a/bin/build-master-status
+++ b/bin/build-master-status
@@ -79,11 +79,10 @@ if [ $# -ne 0 ]; then
fi
stable="$(
- ${master_mirror_command} "${master_mirror_directory}/i686/" | \
- awk '{print $5}' | \
- grep -v 'testing$\|staging$\|^\.$' | \
+ ls_master_mirror 'i686' | \
+ grep -v 'testing$\|staging$' | \
while read -r dir; do
- ${master_mirror_command} "${master_mirror_directory}/i686/${dir}/"
+ ls_master_mirror "i686/${dir}"
done | \
grep -c '\.pkg\.tar\.xz$'
)"
@@ -101,20 +100,18 @@ pending_packages="$(
wc -l
)"
staging="$(
- ${master_mirror_command} "${master_mirror_directory}/i686/" | \
- awk '{print $5}' | \
+ ls_master_mirror 'i686' | \
grep 'staging$' | \
while read -r dir; do
- ${master_mirror_command} "${master_mirror_directory}/i686/${dir}/"
+ ls_master_mirror "i686/${dir}"
done | \
grep -c '\.pkg\.tar\.xz$'
)"
testing="$(
- ${master_mirror_command} "${master_mirror_directory}/i686/" | \
- awk '{print $5}' | \
+ ls_master_mirror 'i686' | \
grep 'testing$' | \
while read -r dir; do
- ${master_mirror_command} "${master_mirror_directory}/i686/${dir}/"
+ ls_master_mirror "i686/${dir}"
done | \
grep -c '\.pkg\.tar\.xz$'
)"