summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-12-07 13:30:04 +0100
committerHolger Levsen <holger@layer-acht.org>2015-12-07 13:30:04 +0100
commitf48938b80d93ed14b8bf9e2992cc15ab9d596fe4 (patch)
treea9868ba9395d20f047c431cdd076c7241fae5043 /bin
parent39a35150e0fff5f2e3b4d6f8b4a6432589f87da2 (diff)
downloadjenkins.debian.net-f48938b80d93ed14b8bf9e2992cc15ab9d596fe4.tar.xz
reproducible: make criteria for old versions match reality
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_scheduler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index 79ca8f30..31d0f3f6 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -369,8 +369,8 @@ def query_old_ftbfs_and_depwait_versions(suite, arch, limit):
def query_old_versions(suite, arch, limit):
- criteria = 'tested at least two weeks ago, no new version available, ' + \
- 'sorted by last build date'
+ criteria = """tested at least {minimum_age} days ago, no new version available,
+ sorted by last build date""".format(minimum_age=MINIMUM_AGE[arch])
query = """SELECT DISTINCT s.id, s.name
FROM sources AS s JOIN results AS r ON s.id = r.package_id
WHERE s.suite='{suite}' AND s.architecture='{arch}'