From 9ff3c721b6dab59b488a8ca666eef9c3c9469a6f Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 7 Oct 2014 18:37:47 +0200 Subject: reproducible: refactor --- bin/reproducible_stats.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'bin/reproducible_stats.sh') diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh index 49b960e1..94aac41b 100755 --- a/bin/reproducible_stats.sh +++ b/bin/reproducible_stats.sh @@ -77,7 +77,7 @@ finish_navi_frame() { echo "stats for reproducible builds" >> $NAVI } -link_packages() { +process_packages() { for PKG in $@ ; do RESULT=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT build_date,version FROM source_packages WHERE name = \"$PKG\"") BUILD_DATE=$(echo $RESULT|cut -d "|" -f1) @@ -122,10 +122,21 @@ link_packages() { else LINKTARGET[$PKG]="$PKG" fi + done +} + +link_packages() { + for PKG in $@ ; do write_summary " ${LINKTARGET[$PKG]} " done } +echo "Processing packages... this will take a while." +EXTRA_STAR=true +process_packages $BAD +EXTRA_STAR=false +process_packages $UGLY $GOOD + echo "Starting to write statistics index page." echo SUMMARY=index.html @@ -137,9 +148,7 @@ write_summary "

Statistics for reproducible builds

" write_summary "

This page is updated every three hours. Results are obtained from several build jobs running on jenkins.debian.net. Thanks to Profitbricks for donating the virtual machine it's running on!

" write_summary "

$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! Join #debian-reproducible on OFTC to get support for making sure your packages build reproducibly too!

" write_summary "

$COUNT_BAD packages ($PERCENT_BAD% of $COUNT_TOTAL) failed to built reproducibly: " -EXTRA_STAR=true link_packages $BAD -EXTRA_STAR=false write_summary "

" write_summary "

A β sign after a package name indicates that no .buildinfo file was generated.

" write_summary -- cgit v1.2.3-70-g09d2