[Qa-jenkins-scm] [jenkins.debian.net] 02/10: reproducible: add 'amount of issues in packages'

Holger Levsen holger at moszumanska.debian.org
Sat Mar 14 19:03:02 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit e18d579e04e4c8d1d491bd1abcdde6b090547010
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat Mar 14 18:18:34 2015 +0100

    reproducible: add 'amount of issues in packages'
---
 bin/reproducible_html_graphs.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh
index 57144dc..6925617 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list