[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible debian: improve comment to better describe what the code does + why

Holger Levsen holger at moszumanska.debian.org
Sun Feb 14 11:30:36 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 2efeea2a30da5066b9769769e6674b0c8c9da076
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sun Feb 14 12:30:22 2016 +0100

    reproducible debian: improve comment to better describe what the code does + why
---
 bin/reproducible_scheduler.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index 6014c7e..ce2b1b7 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list