summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-06-14 20:13:51 +0200
committerHolger Levsen <holger@layer-acht.org>2015-06-14 22:36:07 +0200
commit84d0ae764a0f0c4f5527411b0abdb3cfadc0ad73 (patch)
tree3f8e7762702737dd7740166f2e746be5ac1f7cc1
parent54b196c4f43bba4e9e2b6d370e2f301a5a7c1831 (diff)
downloadjenkins.debian.net-84d0ae764a0f0c4f5527411b0abdb3cfadc0ad73.tar.xz
reproducible: remote_scheduler: fix the "build is already started, not scheduling" logic
-rwxr-xr-xbin/reproducible_remote_scheduler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_remote_scheduler.py b/bin/reproducible_remote_scheduler.py
index 6a6724fd..cd5845ca 100755
--- a/bin/reproducible_remote_scheduler.py
+++ b/bin/reproducible_remote_scheduler.py
@@ -105,7 +105,7 @@ for pkg in packages:
# tests whether the package is already building
result2 = query_db(query2.format(pkg=pkg, suite=suite))
try:
- if result2[0][0] != '':
+ if not result2[0][0]:
ids.append(result[0][0])
pkgs.append(pkg)
else: