From bcddbd498863d705b82ac784888f58036949c5cf Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 5 Oct 2014 21:45:57 +0200 Subject: reproducible: include version in pkg overview. mark packages without buildinfo --- bin/reproducible_stats.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh index 7a38be7e..2ed151c8 100755 --- a/bin/reproducible_stats.sh +++ b/bin/reproducible_stats.sh @@ -62,8 +62,11 @@ init_navi_frame() { NAVI="/var/lib/jenkins/userContent/rb-pkg/$1_navigation.html" echo "

" > $NAVI echo "$1: " >> $NAVI - BUILD_DATE=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT build_date FROM source_packages WHERE name = \"$PKG\"") - echo "($BUILD_DATE) " >> $NAVI + RESULT=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT build_date,version FROM source_packages WHERE name = \"$PKG\"") + BUILD_DATE=$(echo $RESULT|cut -d "|" -f1) + VERSION=$(echo $RESULT|cut -d "|" -f2) + echo "($VERSION) " >> $NAVI + echo "at $BUILD_DATE: " >> $NAVI } append2navi_frame() { @@ -82,12 +85,14 @@ link_packages() { EVERSION=$(echo $VERSION | cut -d ":" -f2) # FIXME: remove unused code once all diffp.log and pbuilder.log files are gone if [ -f "/var/lib/jenkins/userContent/dbd/${PKG}_${EVERSION}.debbindiff.html" ] || [ -f "/var/lib/jenkins/userContent/dbd/${PKG}_${EVERSION}.diffp.log" ] || [ -f "/var/lib/jenkins/userContent/pbuilder/${PKG}_${EVERSION}.pbuilder.log" ] || [ -f "/var/lib/jenkins/userContent/buildinfo/${PKG}_${EVERSION}_amd64.buildinfo" ] || [ -f "/var/lib/jenkins/userContent/rbuild/${PKG}_${EVERSION}.rbuild.log" ]; then - write_index " $PKG " + write_index " $PKG" MAINLINK="" init_navi_frame "$PKG" if [ -f "/var/lib/jenkins/userContent/buildinfo/${PKG}_${EVERSION}_amd64.buildinfo" ] ; then append2navi_frame " buildinfo " MAINLINK="$JENKINS_URL/userContent/buildinfo/${PKG}_${EVERSION}_amd64.buildinfo" + elif [ "$2" != "" ] + write_index "* " fi if [ -f "/var/lib/jenkins/userContent/dbd/${PKG}_${EVERSION}.debbindiff.html" ] ; then append2navi_frame " debbindiff " @@ -123,7 +128,7 @@ write_index "

Results were obtained by $COUNT_TOTAL packages attempted to build so far, that's $PERCENT_TOTAL% of $AMOUNT source packages in Debian $SUITE currently. Out of these, $PERCENT_GOOD% were successful, so quite wildly guessing this roughy means about $GUESS_GOOD packages should be reproducibly buildable!

" write_index "

$COUNT_BAD packages ($PERCENT_BAD% of $COUNT_TOTAL) failed to built reproducibly: " echo -n "Starting to loop through the packages tested" -link_packages $BAD +link_packages $BAD buildinfo write_index "

" write_index write_index "

$COUNT_UGLY packages ($PERCENT_UGLY%) failed to build from source: " -- cgit v1.2.3-70-g09d2