From fddb2a9e3d92daad6467dc85e2eb1ed7517da3ba Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 5 Oct 2014 14:52:26 +0200 Subject: reproducible: show blacklisted packages in stats --- bin/reproducible_stats.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh index dcd4b4cb..ee482323 100755 --- a/bin/reproducible_stats.sh +++ b/bin/reproducible_stats.sh @@ -27,6 +27,8 @@ SOURCELESS=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT name FROM source_packages COUNT_SOURCELESS=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT COUNT(name) FROM source_packages WHERE status = \"404\"" | xargs echo) NOTFORUS=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT name FROM source_packages WHERE status = \"not for us\" ORDER BY build_date DESC" | xargs echo) COUNT_NOTFORUS=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT COUNT(name) FROM source_packages WHERE status = \"not for us\"" | xargs echo) +BLACKLISTED=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT name FROM source_packages WHERE status = \"blacklisted\" ORDER BY build_date DESC" | xargs echo) +COUNT_BLACKLISTED=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT COUNT(name) FROM source_packages WHERE status = \"blacklisted\"" | xargs echo) COUNT_TOTAL=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT COUNT(name) FROM source_packages") PERCENT_TOTAL=$(echo "scale=1 ; ($COUNT_TOTAL*100/$AMOUNT)" | bc) PERCENT_GOOD=$(echo "scale=1 ; ($COUNT_GOOD*100/$COUNT_TOTAL)" | bc) @@ -81,6 +83,9 @@ fi if [ $COUNT_NOTFORUS -gt 0 ] ; then htmlecho "

$COUNT_NOTFORUS ($PERCENT_NOTFORUS%) packages which are neither Architecture: 'any' nor 'all' nor 'amd64' nor 'linux-amd64': $NOTFORUS

" fi +if [ $COUNT_BLACKLISTED -gt 0 ] ; then + htmlecho "

$COUNT_BLACKLISTED packages are blacklisted and will never be tested here: $BLACKLISTED

" +fi htmlecho "

$COUNT_GOOD packages ($PERCENT_GOOD%) successfully built reproducibly: " link_packages $GOOD htmlecho "

" -- cgit v1.2.3-70-g09d2