From bfd80ecaff42a8f567cbf0ac8c3694c9d773f4db Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 29 Sep 2014 21:33:41 +0200 Subject: reproducible: count correctly --- bin/reproducible_build.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin') 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) -- cgit v1.2.3-70-g09d2