From 8902cce8cded7baa85dace76560af4adeb74fdd9 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 2 Mar 2015 22:26:44 +0100 Subject: reproducible: new page: stats (and split previous stats page into suite_stats) --- bin/reproducible_common.sh | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'bin/reproducible_common.sh') diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh index daefb044..4bba38d1 100755 --- a/bin/reproducible_common.sh +++ b/bin/reproducible_common.sh @@ -76,8 +76,8 @@ META_PKGSET[13]="maint_pkg-perl-maintainers" init_html() { MAINVIEW="stats" ALLSTATES="reproducible FTBR FTBFS 404 not_for_us blacklisted" - ALLVIEWS="issues notes no_notes scheduled last_24h last_48h all_abc dd-list repo_stats pkg_sets stats" - GLOBALVIEWS="issues notes no_notes repo_stats pkg_sets stats" + ALLVIEWS="issues notes no_notes scheduled last_24h last_48h all_abc dd-list pkg_sets suite_stats repo_stats stats" + GLOBALVIEWS="issues notes no_notes pkg_sets repo_stats stats" SPOKENTARGET["issues"]="issues" SPOKENTARGET["notes"]="packages with notes" SPOKENTARGET["no_notes"]="packages without notes" @@ -86,9 +86,10 @@ init_html() { SPOKENTARGET["last_48h"]="packages tested in the last 48h" SPOKENTARGET["all_abc"]="all tested packages (sorted alphabetically)" SPOKENTARGET["dd-list"]="maintainers of unreproducible packages" - SPOKENTARGET["repo_stats"]="apt repository stats" SPOKENTARGET["pkg_sets"]="package sets stats" - SPOKENTARGET["stats"]="$SUITE stats" + SPOKENTARGET["suite_stats"]="$SUITE stats" + SPOKENTARGET["repo_stats"]="repositories overview" + SPOKENTARGET["stats"]="reproducible stats" # query some data we need everywhere AMOUNT=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT count(*) FROM sources WHERE suite=\"${SUITE}\"") COUNT_TOTAL=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT COUNT(*) FROM results AS r JOIN sources AS s ON r.package_id=s.id WHERE s.suite=\"${SUITE}\"") @@ -166,10 +167,12 @@ write_page_header() { continue fi write_page "
  • ${SPOKEN_TARGET}
  • " - done - for i in $SUITES ; do - if [ "$i" != "$SUITE" ] ; then - write_page "
  • suite: $i
  • " + if [ "$TARGET" = "suite_stats" ] ; then + for i in $SUITES ; do + if [ "$i" != "$SUITE" ] ; then + write_page "
  • suite: $i
  • " + fi + done fi done write_page "" -- cgit v1.2.3-70-g09d2