summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-02-14 12:30:22 +0100
committerHolger Levsen <holger@layer-acht.org>2016-02-14 12:30:22 +0100
commit2efeea2a30da5066b9769769e6674b0c8c9da076 (patch)
tree45c9812f18bf0a6c59f4543c54b7439a2f6d84bd
parent2b3332a45fc2d05c386fa3ac0629917e6fc18dd0 (diff)
downloadjenkins.debian.net-2efeea2a30da5066b9769769e6674b0c8c9da076.tar.xz
reproducible debian: improve comment to better describe what the code does + why
-rwxr-xr-xbin/reproducible_scheduler.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index 6014c7e0..ce2b1b7d 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -343,7 +343,10 @@ def query_new_versions(suite, arch, limit):
ORDER BY r.build_date
LIMIT {limit}""".format(suite=suite, arch=arch, limit=limit)
pkgs = query_db(query)
- # this is to avoid constant rescheduling of packages in our exp repository
+ # the next line avoids constant rescheduling of packages:
+ # packages in our repository != sid or testing,
+ # so they will always be selected by the query above
+ # so we only accept them if there version is greater than the already tested one
packages = [(x[0], x[1]) for x in pkgs if version_compare(x[2], x[3]) > 0]
print_schedule_result(suite, arch, criteria, packages)
return packages