diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-03-02 22:26:44 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-03-02 22:26:44 +0100 |
commit | 8902cce8cded7baa85dace76560af4adeb74fdd9 (patch) | |
tree | 98fd5aa57967f56233a2349e7142c5b76709a3d7 /bin/reproducible_common.sh | |
parent | c4594a18be3d0622b1f810ed6c0a00ec3459252e (diff) | |
download | jenkins.debian.net-8902cce8cded7baa85dace76560af4adeb74fdd9.tar.xz |
reproducible: new page: stats (and split previous stats page into suite_stats)
Diffstat (limited to 'bin/reproducible_common.sh')
-rwxr-xr-x | bin/reproducible_common.sh | 19 |
1 files changed, 11 insertions, 8 deletions
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 "<li><a href=\"$BASEURL/index_${TARGET}.html\">${SPOKEN_TARGET}</a></li>" - done - for i in $SUITES ; do - if [ "$i" != "$SUITE" ] ; then - write_page "<li><a href=\"/$i\">suite: $i</a></li>" + if [ "$TARGET" = "suite_stats" ] ; then + for i in $SUITES ; do + if [ "$i" != "$SUITE" ] ; then + write_page "<li><a href=\"/$i\">suite: $i</a></li>" + fi + done fi done write_page "</ul>" |