summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-01-02 13:02:29 +0100
committerHolger Levsen <holger@layer-acht.org>2015-01-02 13:02:29 +0100
commit791adced63d4b2708a839941edf989ab5146597d (patch)
treedb37ba5c6e8ecffe0a7c53911fd891c795cd8b0c /bin
parent570de48987f898004854384597268985858e0b30 (diff)
downloadjenkins.debian.net-791adced63d4b2708a839941edf989ab5146597d.tar.xz
reproducible: fix bug preventing deselect_old_with_buildinfo() to work properly
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_scheduler.sh9
1 files 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 <holger@layer-acht.org>
+# Copyright 2014-2015 Holger Levsen <holger@layer-acht.org>
# 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