From: Barry deFreese Date: Sun, 22 Nov 2009 14:19:22 +0000 (+0000) Subject: Remove suite validation and use check_distributions instead and move it further up... X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc7073896e638b1621bd5ef51f782988eb4380fc;p=dak Remove suite validation and use check_distributions instead and move it further up in process --- 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