From 40e0764e17bf25af14b8d036d74228be43faa51b Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 1 Oct 2014 21:16:09 +0200 Subject: reproducible: improve output --- bin/reproducible_stats.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh index 3760f1ec..fa002933 100755 --- a/bin/reproducible_stats.sh +++ b/bin/reproducible_stats.sh @@ -34,6 +34,9 @@ COUNT_TOTAL=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT COUNT(name) FROM source_p PERCENT_TOTAL=$(echo "scale=1 ; ($COUNT_TOTAL*100/$AMOUNT)" | bc) PERCENT_GOOD=$(echo "scale=1 ; ($COUNT_GOOD*100/$COUNT_TOTAL)" | bc) PERCENT_BAD=$(echo "scale=1 ; ($COUNT_BAD*100/$COUNT_TOTAL)" | bc) +PERCENT_UGLY=$(echo "scale=1 ; ($COUNT_UGLY*100/$AMOUNT)" | bc) +PERCENT_NOTFORUS=$(echo "scale=1 ; ($COUNT_NOTFORUS*100/$AMOUNT)" | bc) +PERCENT_SOURCELESS=$(echo "scale=1 ; ($COUNT_SOURCELESS*100/$AMOUNT)" | bc) GUESS_GOOD=$(echo "$PERCENT_GOOD*$AMOUNT/100" | bc) htmlecho() { @@ -57,25 +60,25 @@ for PKG in $BAD ; do done htmlecho "

" htmlecho -htmlecho "

$COUNT_UGLY packages failed to build from source: " +htmlecho "

$COUNT_UGLY packages ($PERCENT_UGLY%) failed to build from source: " for PKG in $UGLY ; do VERSION=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT version FROM source_packages WHERE name = \"$PKG\"") # remove epoch VERSION=$(echo $VERSION | cut -d ":" -f2) if [ -f "/var/lib/jenkins/userContent/pbuilder/${PKG}_${VERSION}.pbuilder.log" ] ; then - htmlecho "$PKG " + htmlecho " $PKG " else - htmlecho "$PKG " + htmlecho " $PKG " fi done htmlecho "

" if [ $COUNT_SOURCELESS -gt 0 ] ; then - htmlecho "

$COUNT_SOURCELESS packages which don't exist in sid and need investigation: $SOURCELESS

" + htmlecho "

$COUNT_SOURCELESS ($PERCENT_SORCELESS%) packages which don't exist in sid and need investigation: $SOURCELESS

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

$COUNT_NOTFORUS packages which are neither Architecture: 'any' nor 'all' nor 'amd64': $NOTFORUS

" + htmlecho "

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

" fi -htmlecho "

$COUNT_GOOD packages ($PERCENT_GOOD% of $COUNT_TOTAL) successfully built reproducibly: ${GOOD}

" +htmlecho "

$COUNT_GOOD packages ($PERCENT_GOOD%) successfully built reproducibly: ${GOOD}

" htmlecho "

Packages which failed to build reproducibly, sorted by Maintainers: and Uploaders: fields." htmlecho "

$(echo $BAD | dd-list -i) 

" htmlecho "

Static URL for this page. Last modified: $(date)" -- cgit v1.2.3-54-g00ecf