[dak/master 11/18] Check suite from database, not config file
Signed-off-by: Mark Hymers <mhy@debian.org>
---
daklib/queue.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/daklib/queue.py b/daklib/queue.py
index 4165471..a8ea303 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))
###########################################################################
--
1.7.2.5
Reply to: