]> git.decadent.org.uk Git - dak.git/commitdiff
Check suite from database, not config file
authorMark Hymers <mhy@debian.org>
Thu, 28 Jul 2011 06:56:31 +0000 (07:56 +0100)
committerMark Hymers <mhy@debian.org>
Thu, 28 Jul 2011 06:56:31 +0000 (07:56 +0100)
Signed-off-by: Mark Hymers <mhy@debian.org>
daklib/queue.py

index 416547198b759ac326ffd024242b56fedb0d9f3d..a8ea3035df38102937f0f6b32720c5c43fa05272 100755 (executable)
@@ -700,7 +700,7 @@ class Upload(object):
 
         # Ensure target distributions exist
         for suite in self.pkg.changes["distribution"].keys():
-            if not Cnf.has_key("Suite::%s" % (suite)):
+            if not get_suite(suite.lower()):
                 self.rejects.append("Unknown distribution `%s'." % (suite))
 
     ###########################################################################