diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-10-05 02:30:50 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-10-05 02:30:50 +0200 |
commit | 24ab653a5d71187eaf6fcef5ca7065dbdc335573 (patch) | |
tree | 87c945ffd45e88c1eda4f29e5ee2120fc912dede | |
parent | e4bb3bbfdd68aa39e8819f401b25aae744ba180c (diff) | |
download | jenkins.debian.net-24ab653a5d71187eaf6fcef5ca7065dbdc335573.tar.xz |
reproducible: don't try to rebuild known versions
-rwxr-xr-x | bin/reproducible_build.sh | 4 |
1 files 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}" |