summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-14 18:18:34 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-14 18:18:34 +0100
commite18d579e04e4c8d1d491bd1abcdde6b090547010 (patch)
tree2179d9e6a9a23c21d4c5c2abc92ccd51b99240c4
parent37c3f73f17ba0be08e40bb789941c4b973382cfa (diff)
downloadjenkins.debian.net-e18d579e04e4c8d1d491bd1abcdde6b090547010.tar.xz
reproducible: add 'amount of issues in packages'
-rwxr-xr-xbin/reproducible_html_graphs.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh
index 57144dcb..6925617d 100755
--- a/bin/reproducible_html_graphs.sh
+++ b/bin/reproducible_html_graphs.sh
@@ -137,6 +137,7 @@ update_notes_stats() {
fi
NOTES=$(grep -c -v "^ " ${NOTES_GIT_PATH}/packages.yml)
ISSUES=$(grep -c -v "^ " ${NOTES_GIT_PATH}/issues.yml)
+ COUNT_ISSUES=$(grep " -" ${NOTES_GIT_PATH}/packages.yml | egrep -v " - [0-9]+"|wc -l)
RESULT=$(sqlite3 -init ${INIT} ${PACKAGES_DB} "SELECT datum from ${TABLE[4]} WHERE datum = \"$DATE\"")
if [ -z $RESULT ] ; then
echo "Updating notes stats for $DATE."
@@ -510,6 +511,7 @@ create_main_stats_page() {
# write inventory table
write_page "<table class=\"main\"><tr><th>inventory type</th><th>amount</th></tr>"
write_page "<tr><td>packages with notes</td><td>$NOTES</td></tr>"
+ write_page "<tr><td>amount of issues in packages</td><td>$COUNT_ISSUES</td></tr>"
write_page "<tr><td>issues categorized</td><td>$ISSUES</td></tr>"
write_page "</table>"
# other graphs