From 05a43c23b36c4b68a246bc69fa0d699a3ec469fb Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 1 Nov 2017 09:59:45 +0100 Subject: remove references to loop files (they may change), remove associated TODO, small cleanups --- bin/build-master-status | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'bin/build-master-status') 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 ) -- cgit v1.2.3-54-g00ecf