summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-08-01 09:51:46 +0000
committerHolger Levsen <holger@layer-acht.org>2015-08-01 11:53:18 +0200
commitf9bd0b31511be12d5b06fae97f8e98b210b7aaea (patch)
tree6aa0bf4bf3457033485a70dae3781ac4b1a309d9
parenteac2164ac72ed531c5acc2be47f7b2ab576103b0 (diff)
downloadjenkins.debian.net-f9bd0b31511be12d5b06fae97f8e98b210b7aaea.tar.xz
reproducible: fixup previous commit
-rwxr-xr-xbin/reproducible_maintenance.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index 3bb003a4..38dd7497 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -81,6 +81,7 @@ if [ ! -z "$FAILED_BUILDS" ] ; then
REASON="maintenance reschedule: reschedule builds which failed due to network errors"
CANDIDATES=$(for PKG in $(echo $FAILED_BUILDS | sed "s# #\n#g" | grep "/$SUITE/" | cut -d "/" -f10 | cut -d "_" -f1) ; do echo "$PKG" ; done)
# double check those builds actually failed
+ TO_SCHEDULE=""
for pkg in $CANDIDATES ; do
QUERY="SELECT s.name FROM sources AS s JOIN results AS r ON r.package_id=s.id WHERE s.suite='$SUITE' AND r.status='FTBFS' AND s.name='$pkg'"
TO_SCHEDULE=${TO_SCHEDULE:+"$TO_SCHEDULE "}$(sqlite3 $INIT $PACKAGES_DB "$QUERY")