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 10:28:05 +0100
committerErich Eckner <git@eckner.net>2017-11-01 10:28:05 +0100
commitad463afa2d41e42463476e43436eac224bac1de3 (patch)
tree3c51efa5929a02cbde5df72750b4843460d26edf /bin/build-master-status
parent05a43c23b36c4b68a246bc69fa0d699a3ec469fb (diff)
() -> {}
Diffstat (limited to 'bin/build-master-status')
-rwxr-xr-xbin/build-master-status24
1 files changed, 12 insertions, 12 deletions
diff --git a/bin/build-master-status b/bin/build-master-status
index 0e83d5b..a606c27 100755
--- a/bin/build-master-status
+++ b/bin/build-master-status
@@ -78,14 +78,14 @@ pending_packages=$(
wc -l
)
next_tasks=$(
- (
+ {
cat "${work_dir}/build-list"
find "${work_dir}/package-states" -maxdepth 1 -name '*.broken' -printf '%f\n' | \
sed '
s|\.\([^.]\+\)\.\([^.]\+\)\.\([^.]\+\)\.[^.]\+$| \1 \2 \3|
p
'
- ) | \
+ } | \
sort | \
uniq -u | \
while read -r package git_revision mod_git_revision repository; do
@@ -111,7 +111,7 @@ testing=$(
done | \
grep -c '\.pkg\.tar\.xz$'
) || true
-(
+{
find "${work_dir}/package-states/" -maxdepth 1 -name '*.broken' -printf '%f\n' | \
sed 's|\.\([^.]\+\)\.\([^.]\+\)\.\([^.]\+\)\.[^.]\+$| \1 \2 \3|' | \
while read -r pkg rev mod_rev repo; do
@@ -119,7 +119,7 @@ testing=$(
echo "${pkg}"
fi
done
- (
+ {
find "${work_dir}/build-list.loops" -maxdepth 1 -regextype grep \
-regex '.*/loop_[0-9]\+' \
-exec cat '{}' \; | \
@@ -127,10 +127,10 @@ testing=$(
find "${work_dir}/package-states/" -maxdepth 1 -name '*.broken' -printf '%f\n' | \
sed 's|\(\.[^.]\+\)\{4\}||' | \
sort -u
- ) | \
+ } | \
sort | \
uniq -d
-) | \
+} | \
sort -u > \
"${tmp_dir}/broken-packages-names"
broken=$(
@@ -196,7 +196,7 @@ looped_packages=$(
if ${web}; then
"${base_dir}/bin/calculate-dependent-packages"
- (
+ {
printf '%s\n' \
'<html>' \
'<head>' \
@@ -232,10 +232,10 @@ if ${web}; then
'</table>' \
'</body>' \
'</html>'
- ) | \
+ } | \
sponge "${tmp_dir}/build-master-status.html"
end=$(($(date +%s)-7*24*60*60))
- (
+ {
[ -f "${webserver_directory}/statistics" ] && \
cat "${webserver_directory}/statistics"
printf '%s ' \
@@ -253,7 +253,7 @@ if ${web}; then
"${next_tasks}" | \
sed 's| $|\n|'
echo "${end}"
- ) | \
+ } | \
sort -k1nr,1 | \
sed -n "
/^${end}\$/q
@@ -340,10 +340,10 @@ if ${web}; then
grep -m1 "^$(str_to_regex "${sf}.")[^.]\+\.build-log\.gz\$"
)" \
"$(
- (
+ {
grep -m1 "^$(str_to_regex "${sf}") " "${work_dir}/dependent-count" || \
echo 'x &nbsp;'
- ) | \
+ } | \
cut -d' ' -f2
)" \
"${build_error}"