From cc7073896e638b1621bd5ef51f782988eb4380fc Mon Sep 17 00:00:00 2001 From: Barry deFreese Date: Sun, 22 Nov 2009 14:19:22 +0000 Subject: [PATCH] Remove suite validation and use check_distributions instead and move it further up in process --- dak/process_new.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dak/process_new.py b/dak/process_new.py index 4b2cff3e..9f7694d8 100755 --- a/dak/process_new.py +++ b/dak/process_new.py @@ -603,6 +603,9 @@ def do_new(upload, session): changes = upload.pkg.changes cnf = Config() + # Check for a valid distribution + upload.check_distributions() + # Make a copy of distribution we can happily trample on changes["suite"] = copy.copy(changes["distribution"]) @@ -620,10 +623,6 @@ def do_new(upload, session): oinv, suite, ninv, override) del changes["suite"][suite] changes["suite"][override] = 1 - # Validate suites - for suite in changes["suite"].keys(): - if get_suite(suite, session) is None: - utils.fubar("%s has invalid suite '%s' (possibly overriden). say wha?" % (changes, suite)) # The main NEW processing loop done = 0 -- 2.39.5