summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-01-14 13:00:40 +0100
committerHolger Levsen <holger@layer-acht.org>2015-01-14 13:00:40 +0100
commitb30f7de3e70f7a7943310fd7d0a4b25f784a2333 (patch)
tree5aa840e929db6d3afa4422774b97f40ca4472c6f
parent003b6c4905cda7e4edd113c7b0f641de831ac3d0 (diff)
downloadjenkins.debian.net-b30f7de3e70f7a7943310fd7d0a4b25f784a2333.tar.xz
reproducible: add summary to usertag bugs table
-rwxr-xr-xbin/reproducible_html_graphs.sh7
1 files changed, 6 insertions, 1 deletions
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 "<table class=\"body\"><tr><th>Usertag on $VALUE</th><th>Open</th><th>Done</th><th>Total</th></tr>"
+ write_page "<table class=\"body\"><tr><th>Bugs per usertag on $VALUE</th><th>Open</th><th>Done</th><th>Total</th></tr>"
elif [ $((COUNT%2)) -eq 0 ] ; then
write_page "<tr><td><a href=\"https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=${FIELD:5};users=reproducible-builds@lists.alioth.debian.org&archive=both\">${FIELD:5}</a></td><td>$VALUE</td>"
TOTAL=$VALUE
+ let "TOPEN=TOPEN+VALUE"
else
write_page "<td>$VALUE</td>"
let "TOTAL=TOTAL+VALUE"
+ let "TDONE=TDONE+VALUE"
write_page "<td>$TOTAL</td></tr>"
+ let "TTOTAL=TTOTAL+VALUE"
fi
done
+ write_page "<tr><td>All usertagged bugs for reproducible-builds@lists.alioth.debian.org</td><td>$TOPEN</td><td>$TDONE</td><td>$TTOTAL</td></tr>"
write_page "</table>"
fi
}