From ecf11faf60dccaecfc6bbdbac2e19bc7db0dff7f Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 23 Nov 2017 12:11:29 +0100 Subject: bin/build-master-status: cleanup, make use of new function modification_revision_link() to print links (now also on build-master-status.html) --- bin/build-master-status | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) (limited to 'bin/build-master-status') diff --git a/bin/build-master-status b/bin/build-master-status index ed0578d..c453427 100755 --- a/bin/build-master-status +++ b/bin/build-master-status @@ -229,7 +229,7 @@ if ${web}; then 'build slave' printf '' find "${work_dir}/package-states" -maxdepth 1 -name '*.locked' \ - -printf '%T@ %TY-%Tm-%Td %TH:%TM%f ' \ + -printf '%T@ %TY-%Tm-%Td %TH:%TM %f ' \ -execdir sed ' :a $!{ @@ -241,12 +241,22 @@ if ${web}; then sort -k1n,1 | \ sed ' s|^\S\+ || - s|$|| - s|\.locked || - s|\.\([^.]\+\)$|

\1| - s|\.\([^.]\+\)$|

\1| - s|\.\([^.]\+\)$|

\1| - ' + s|\.locked | | + s|\.\([^.]\+\)$| \1| + s|\.\([^.]\+\)$| \1| + s|\.\([^.]\+\)$| \1| + ' | \ + while read -r date time pkg rev mod_rev repo slaves; do + printf '' + printf '%s' \ + "${date} ${time}" \ + "${pkg}" \ + "

${rev}

" \ + "

$(modification_revision_link "${mod_rev}" "${repo}" "${pkg}")

" \ + "${repo}" \ + "${slaves}" + printf '\n' + done printf '%s\n' \ '' \ '' \ @@ -432,9 +442,9 @@ if ${web}; then unset right fi printf '' - if git -C "${repo_paths__archlinux32}" archive "${mod_rev}" -- "${repo}/${pkg}/PKGBUILD" > /dev/null 2>&1; then - mod_rev="${mod_rev}" - fi + mod_rev=$( + modification_revision_link "${mod_rev}" "${repo}" "${pkg}" + ) build_error=$( echo "${build_error}" | \ sed 's|,|, |g' -- cgit v1.2.3