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-11-01 09:59:45 +0100
committerErich Eckner <git@eckner.net>2017-11-01 09:59:45 +0100
commit05a43c23b36c4b68a246bc69fa0d699a3ec469fb (patch)
tree026314699b7f4de4f7bd52f00d2a1e13ea06d5db /bin/build-master-status
parent4e67e6d62a91cba3f2f54401bba073b601db82d5 (diff)
remove references to loop files (they may change), remove associated TODO, small cleanups
Diffstat (limited to 'bin/build-master-status')
-rwxr-xr-xbin/build-master-status15
1 files changed, 8 insertions, 7 deletions
diff --git a/bin/build-master-status b/bin/build-master-status
index f901d0a..0e83d5b 100755
--- a/bin/build-master-status
+++ b/bin/build-master-status
@@ -122,7 +122,7 @@ testing=$(
(
find "${work_dir}/build-list.loops" -maxdepth 1 -regextype grep \
-regex '.*/loop_[0-9]\+' \
- -exec cat {} \; | \
+ -exec cat '{}' \; | \
sort -u
find "${work_dir}/package-states/" -maxdepth 1 -name '*.broken' -printf '%f\n' | \
sed 's|\(\.[^.]\+\)\{4\}||' | \
@@ -146,13 +146,14 @@ locked=$(
wc -l
)
loops=$(
- find "${work_dir}/build-list.loops" -maxdepth 1 | \
- grep -c '/loop_[0-9]\+$'
-) || true
+ find "${work_dir}/build-list.loops" -maxdepth 1 -regextype grep \
+ -regex '.*/loop_[0-9]\+' | \
+ wc -l
+)
looped_packages=$(
- find "${work_dir}/build-list.loops" -maxdepth 1 | \
- grep '/loop_[0-9]\+$' | \
- xargs -r cat | \
+ find "${work_dir}/build-list.loops" -maxdepth 1 -regextype grep \
+ -regex '.*/loop_[0-9]\+' \
+ -exec cat '{}' \; | \
sort -u | \
wc -l
)