From 42cd2183dfaa48ba5bd0cd0fe50789de41818a7b Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 9 Mar 2015 21:28:52 +0100 Subject: reproducible: refactor, fix default suite links in main view --- bin/reproducible_html_graphs.sh | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh index df943a03..adb1b797 100755 --- a/bin/reproducible_html_graphs.sh +++ b/bin/reproducible_html_graphs.sh @@ -450,12 +450,17 @@ create_main_stats_page() { write_page " \"$SUITE" done write_page "

" - # write meta tag graphs - SUITE="sid" # shall become a loop once we test stretch - for i in $(seq 1 ${#META_PKGSET[@]}) ; do - PNG=${TABLE[6]}_${META_PKGSET[$i]}.png - LABEL="Reproducibility status for packages in $SUITE/$ARCH from '${META_PKGSET[$i]}'" - write_page "\"$LABEL\"" + # write meta pkg graphs per suite + for SUITE in $SUITES ; do + if [ "$SUITE" = "experimental" ] ; then + # no pkg sets in experimental + continue + fi + for i in $(seq 1 ${#META_PKGSET[@]}) ; do + PNG=${TABLE[6]}_${META_PKGSET[$i]}.png + LABEL="Reproducibility status for packages in $SUITE/$ARCH from '${META_PKGSET[$i]}'" + write_page "\"$LABEL\"" + done done write_page "

" # write suite table @@ -491,6 +496,7 @@ create_main_stats_page() { # # main # +SUITE="sid" update_bug_stats update_notes_stats create_main_stats_page @@ -498,10 +504,11 @@ for SUITE in $SUITES ; do update_suite_stats gather_suite_stats create_suite_stats_page - # no pkg sets in experimental - if [ "$SUITE" != "experimental" ] ; then - update_meta_pkg_stats - create_pkg_sets_page + if [ "$SUITE" = "experimental" ] ; then + # no pkg sets in experimental + continue fi + update_meta_pkg_stats + create_pkg_sets_page done -- cgit v1.2.3-70-g09d2