From: Mark Hymers Date: Thu, 28 Jul 2011 06:56:31 +0000 (+0100) Subject: Check suite from database, not config file X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=742ee454cb9fb3960c71d90b4d0a8f1039436d24;p=dak.git Check suite from database, not config file Signed-off-by: Mark Hymers --- diff --git a/daklib/queue.py b/daklib/queue.py index 41654719..a8ea3035 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -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)) ###########################################################################