diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-09-29 21:33:41 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-09-29 21:33:41 +0200 |
commit | bfd80ecaff42a8f567cbf0ac8c3694c9d773f4db (patch) | |
tree | 68a9fd98897f7fd8b49ac99a7817dcb79eda95f5 | |
parent | b00c1387d90d3833a892d22c609f9ad4d04590da (diff) | |
download | jenkins.debian.net-bfd80ecaff42a8f567cbf0ac8c3694c9d773f4db.tar.xz |
reproducible: count correctly
-rwxr-xr-x | bin/reproducible_build.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 740a20d1..8fcdd679 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -80,6 +80,10 @@ if [[ $1 =~ ^-?[0-9]+$ ]] ; then # this is kind of a hack: if $1 is 0, then schedule 33 failed packages which were nadomly picked AMOUNT=33 PACKAGES=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT source_packages.name FROM source_packages,job_sources WHERE (( source_packages.status = 'unreproducible' OR source_packages.status = 'FTBFS') AND source_packages.name = job_sources.name AND job_sources.job = 'random') ORDER BY source_packages.build_date LIMIT $AMOUNT" | xargs -r echo) + AMOUNT=0 + for PKG in $PACKAGES ; do + let "AMOUNT=AMOUNT+1" + done fi # update amount of available packages (for doing statistics later) P_IN_SOURCES=$(xzcat $TMPFILE | grep "^Package" | grep -v "^Package-List:" | cut -d " " -f2 | wc -l) |