From b30f7de3e70f7a7943310fd7d0a4b25f784a2333 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 14 Jan 2015 13:00:40 +0100 Subject: reproducible: add summary to usertag bugs table --- bin/reproducible_html_graphs.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh index 5b3785ef..b8cee77f 100755 --- a/bin/reproducible_html_graphs.sh +++ b/bin/reproducible_html_graphs.sh @@ -190,20 +190,25 @@ write_usertag_table() { RESULT=$(sqlite3 -init ${INIT} ${PACKAGES_DB} "SELECT * from ${TABLE[3]} WHERE datum = \"$DATE\"") if [ -z "$RESULTS" ] ; then COUNT=0 + TOPEN=0 ; TDONE=0 ; TTOTAL=0 for FIELD in $(echo ${FIELDS[3]} | tr -d ,) ; do let "COUNT+=1" VALUE=$(echo $RESULT | cut -d "|" -f$COUNT) if [ $COUNT -eq 1 ] ; then - write_page "" + write_page "
Usertag on $VALUEOpenDoneTotal
" elif [ $((COUNT%2)) -eq 0 ] ; then write_page "" TOTAL=$VALUE + let "TOPEN=TOPEN+VALUE" else write_page "" let "TOTAL=TOTAL+VALUE" + let "TDONE=TDONE+VALUE" write_page "" + let "TTOTAL=TTOTAL+VALUE" fi done + write_page "" write_page "
Bugs per usertag on $VALUEOpenDoneTotal
${FIELD:5}$VALUE$VALUE$TOTAL
All usertagged bugs for reproducible-builds@lists.alioth.debian.org$TOPEN$TDONE$TTOTAL
" fi } -- cgit v1.2.3-70-g09d2