Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-18 12:50:25 +0200
committerErich Eckner <git@eckner.net>2017-06-18 20:03:46 +0200
commited11667e0facdb275b2c7de6f91efb44ac27c849 (patch)
treed90ef3de1641c5733346242288e08b75de3e20df
parenta3e362ca913f9137d9a7f9b41c853fd880f9a437 (diff)
bin/build-master-status: ignore find-errors, generate metadata if necessary
-rwxr-xr-xbin/build-master-status18
1 files changed, 9 insertions, 9 deletions
diff --git a/bin/build-master-status b/bin/build-master-status
index d6c761e..84e5dc6 100755
--- a/bin/build-master-status
+++ b/bin/build-master-status
@@ -5,7 +5,7 @@
. "${0%/*}/../conf/default.conf"
stable="$(
- find "${master_mirror_directory}/i686/" \( -name '*testing' -o -name '*staging' \) -prune -o -name '*.pkg.tar.xz' -print | \
+ find "${master_mirror_directory}/i686/" \( -name '*testing' -o -name '*staging' \) -prune -o -name '*.pkg.tar.xz' -print 2> /dev/null | \
wc -l
)"
tasks="$(
@@ -13,20 +13,20 @@ tasks="$(
"${work_dir}/build-list"
)"
pending_packages="$(
- sed '
- s| |.|g
- s|^|'"${work_dir}"'/package-infos/|
- s|\.[^.]\+$|.packages|
- ' "${work_dir}"/build-list | \
- xargs -r cat | \
+ tr ' ' '.' < \
+ "${work_dir}"/build-list | \
+ while read -r package; do
+ generate_package_metadata "${package}" &> /dev/null
+ cat "${work_dir}/package-infos/${package%.*}.packages"
+ done |
wc -l
)"
staging="$(
- find "${master_mirror_directory}/i686/"*staging -name '*.pkg.tar.xz' | \
+ find "${master_mirror_directory}/i686/"*staging -name '*.pkg.tar.xz' 2> /dev/null | \
wc -l
)"
testing="$(
- find "${master_mirror_directory}/i686/"*testing -name '*.pkg.tar.xz' | \
+ find "${master_mirror_directory}/i686/"*testing -name '*.pkg.tar.xz' 2> /dev/null | \
wc -l
)"
broken="$(