From bd1bf317d2a21ee68b1160ae0f190ed90ba2e2d3 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 2 Oct 2016 14:36:35 +0200 Subject: reproducible Debian: rename variables --- bin/reproducible_html_dashboard.sh | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_html_dashboard.sh b/bin/reproducible_html_dashboard.sh index f5ee1149..83a434a4 100755 --- a/bin/reproducible_html_dashboard.sh +++ b/bin/reproducible_html_dashboard.sh @@ -489,32 +489,33 @@ create_dashboard_page() { write_page "total number of identified issues in packages$COUNT_ISSUES" write_page "packages with notes about these issues$NOTES" - local TD_PKG_NOISSUES="packages in unstable with issues but without identified ones" - local TD_PKG_FTBR="  - unreproducible ones" - local TD_PKG_FTBFS="  - failing to build" - local TD_PKG_SID="packages in unstable which need to be fixed" - local TD_PKG_TESTING="  - in testing" + local TD_PKG_SID_NOISSUES="packages in unstable with issues but without identified ones" + local TD_PKG_SID_FTBR="  - unreproducible ones" + local TD_PKG_SID_FTBFS="  - failing to build" + local TD_PKG_SID_ISSUES="packages in unstable which need to be fixed" + local TD_PKG_TESTING_ISSUES="  - in testing" for ARCH in ${ARCHS} ; do SUITE="unstable" gather_suite_arch_stats RESULT=$(sqlite3 -init ${INIT} ${PACKAGES_DB} "SELECT COUNT(*) FROM (SELECT s.id FROM sources AS s JOIN results AS r ON r.package_id=s.id WHERE r.status IN ('unreproducible', 'FTBFS', 'blacklisted') AND s.id NOT IN (SELECT package_id FROM notes) AND s.suite='$SUITE' AND s.architecture='$ARCH')") - TD_PKG_NOISSUES="$TD_PKG_NOISSUES$RESULT / $(echo "scale=1 ; ($RESULT*100/$COUNT_TOTAL)" | bc)%" + TD_PKG_SID_NOISSUES="$TD_PKG_SID_NOISSUES$RESULT / $(echo "scale=1 ; ($RESULT*100/$COUNT_TOTAL)" | bc)%" RESULT=$(sqlite3 -init ${INIT} ${PACKAGES_DB} "SELECT COUNT(*) FROM (SELECT s.id FROM sources AS s JOIN results AS r ON r.package_id=s.id WHERE r.status='unreproducible' AND s.id NOT IN (SELECT package_id FROM notes) AND s.suite='$SUITE' AND s.architecture='$ARCH')") - TD_PKG_FTBR="$TD_PKG_FTBR$RESULT / $(echo "scale=1 ; ($RESULT*100/$COUNT_TOTAL)" | bc)%" + TD_PKG_SID_FTBR="$TD_PKG_SID_FTBR$RESULT / $(echo "scale=1 ; ($RESULT*100/$COUNT_TOTAL)" | bc)%" RESULT=$(sqlite3 -init ${INIT} ${PACKAGES_DB} "SELECT COUNT(*) FROM (SELECT s.id FROM sources AS s JOIN results AS r ON r.package_id=s.id WHERE r.status='FTBFS' AND s.id NOT IN (SELECT package_id FROM notes) AND s.suite='$SUITE' AND s.architecture='$ARCH')") - TD_PKG_FTBFS="$TD_PKG_FTBFS$RESULT / $(echo "scale=1 ; ($RESULT*100/$COUNT_TOTAL)" | bc)%" - TD_PKG_SID="$TD_PKG_SID$(echo $COUNT_BAD + $COUNT_UGLY |bc) / $(echo $PERCENT_BAD + $PERCENT_UGLY|bc)%" + TD_PKG_SID_FTBFS="$TD_PKG_SID_FTBFS$RESULT / $(echo "scale=1 ; ($RESULT*100/$COUNT_TOTAL)" | bc)%" + TD_PKG_SID_ISSUES="$TD_PKG_SID_ISSUES$(echo $COUNT_BAD + $COUNT_UGLY |bc) / $(echo $PERCENT_BAD + $PERCENT_UGLY|bc)%" + SUITE="testing" gather_suite_arch_stats - TD_PKG_TESTING="$TD_PKG_TESTING$(echo $COUNT_BAD + $COUNT_UGLY |bc) / $(echo $PERCENT_BAD + $PERCENT_UGLY|bc)%" + TD_PKG_TESTING_ISSUES="$TD_PKG_TESTING_ISSUES$(echo $COUNT_BAD + $COUNT_UGLY |bc) / $(echo $PERCENT_BAD + $PERCENT_UGLY|bc)%" done ARCH="amd64" SUITE="unstable" - write_page "$TD_PKG_NOISSUES" - write_page "$TD_PKG_FTBR" - write_page "$TD_PKG_FTBFS" - write_page "$TD_PKG_SID" - write_page "$TD_PKG_TESTING" + write_page "$TD_PKG_SID_NOISSUES" + write_page "$TD_PKG_SID_FTBR" + write_page "$TD_PKG_SID_FTBFS" + write_page "$TD_PKG_SID_ISSUES" + write_page "$TD_PKG_TESTING_ISSUES" # in the following two write_page() calls we use the same # insane grep to filter people who committed with several -- cgit v1.2.3-70-g09d2