From 791adced63d4b2708a839941edf989ab5146597d Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 2 Jan 2015 13:02:29 +0100 Subject: reproducible: fix bug preventing deselect_old_with_buildinfo() to work properly --- bin/reproducible_scheduler.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bin/reproducible_scheduler.sh b/bin/reproducible_scheduler.sh index db375b12..1b64cc19 100755 --- a/bin/reproducible_scheduler.sh +++ b/bin/reproducible_scheduler.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2014 Holger Levsen +# Copyright 2014-2015 Holger Levsen # released under the GPLv=2 DEBUG=false @@ -149,7 +149,7 @@ schedule_packages() { deselect_old_with_buildinfo() { PACKAGES="" - for PKG in $1 ; do + for PKG in $@ ; do if [ ! -f /var/lib/jenkins/userContent/buildinfo/${PKG}_.buildinfo ] ; then PACKAGES="$PACKAGES $PKG" else @@ -161,7 +161,6 @@ deselect_old_with_buildinfo() { # # main # -set +x update_apt init_html COUNT_SCHEDULED=$(sqlite3 ${PACKAGES_DB} 'SELECT count(name) FROM sources_scheduled') @@ -207,9 +206,9 @@ ALL_PACKAGES="$ALL_PACKAGES $PACKAGES" MESSAGE="$MESSAGE, $AMOUNT packages with new versions" if [ $TOTAL -lt 250 ] ; then - OLD=200 + OLD=300 elif [ $TOTAL -le 350 ] ; then - OLD=100 + OLD=150 else OLD=1 fi -- cgit v1.2.3-54-g00ecf