From 24ab653a5d71187eaf6fcef5ca7065dbdc335573 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 5 Oct 2014 02:30:50 +0200 Subject: reproducible: don't try to rebuild known versions --- bin/reproducible_build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index c3aaaa54..0ce95768 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -115,8 +115,8 @@ for SRCPACKAGE in ${PACKAGES} ; do VERSION=$(apt-cache showsrc ${SRCPACKAGE} | grep ^Version | cut -d " " -f2 | sort -r | head -1) # check if we tested this version already before... STATUS=$(sqlite3 ${PACKAGES_DB} "SELECT status FROM source_packages WHERE name = \"${SRCPACKAGE}\" AND version = \"${VERSION}\"") - # if reproducible or ( unreproducible/FTBFS by 50% chance ) - if [ "$STATUS" = "reproducible" ] || (( [ "$STATUS" = "unreproducible" ] || [ "$STATUS" = "FTBFS" ] ) && [ $(( $RANDOM % 100 )) -gt 50 ] ) ; then + # skip if we know this version and status = reproducible or unreproducible or FTBFS + if [ "$STATUS" = "reproducible" ] || [ "$STATUS" = "unreproducible" ] || [ "$STATUS" = "FTBFS" ] ; then echo "Package ${SRCPACKAGE} (${VERSION}) with status '$STATUS' skipped, no newer version available." let "COUNT_SKIPPED=COUNT_SKIPPED+1" SKIPPED="${SRCPACKAGE} ${SKIPPED}" -- cgit v1.2.3-70-g09d2