]> err.no Git - dak/commitdiff
Make cross_suite_version_checks functional.
authorJoerg Jaspert <joerg@debian.org>
Sat, 29 Nov 2008 23:54:27 +0000 (00:54 +0100)
committerJoerg Jaspert <joerg@debian.org>
Sat, 29 Nov 2008 23:54:27 +0000 (00:54 +0100)
OLD bug.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
ChangeLog
daklib/queue.py

index 927b41641919bff89a0d910735936d3bc701effd..051bd1d96e3c34e62fb1431ea207671fe512e6c9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-11-30  Joerg Jaspert  <joerg@debian.org>
+
+       * dak/daklib/queue.py (Upload.cross_suite_version_check): Add a
+       few () to make cross_suite_version_check finally work as
+       intended (well, we hope). Thanks to Philipp Kern for spotting this.
+
 2008-11-28  Mark Hymers  <mhy@debian.org>
 
        * dak/new_security_install.py: Don't attempt to delete the .changes files
index 813782e23ef38e0dfc7c35818eba74d3f00a37c2..698033464d8f7fd3a5725a4c343d2ae232f9abf4 100755 (executable)
@@ -855,8 +855,8 @@ distribution."""
 
         # Check versions for each target suite
         for target_suite in self.pkg.changes["distribution"].keys():
-            must_be_newer_than = [ i.lower for i in self.Cnf.ValueList("Suite::%s::VersionChecks::MustBeNewerThan" % (target_suite)) ]
-            must_be_older_than = [ i.lower for i in self.Cnf.ValueList("Suite::%s::VersionChecks::MustBeOlderThan" % (target_suite)) ]
+            must_be_newer_than = [ i.lower() for i in self.Cnf.ValueList("Suite::%s::VersionChecks::MustBeNewerThan" % (target_suite)) ]
+            must_be_older_than = [ i.lower() for i in self.Cnf.ValueList("Suite::%s::VersionChecks::MustBeOlderThan" % (target_suite)) ]
             # Enforce "must be newer than target suite" even if conffile omits it
             if target_suite not in must_be_newer_than:
                 must_be_newer_than.append(target_suite)