]> err.no Git - dak/commitdiff
Remove suite validation and use check_distributions instead and move it further up...
authorBarry deFreese <bdefreese@ries.debian.org>
Sun, 22 Nov 2009 14:19:22 +0000 (14:19 +0000)
committerBarry deFreese <bdefreese@ries.debian.org>
Sun, 22 Nov 2009 14:19:22 +0000 (14:19 +0000)
dak/process_new.py

index 4b2cff3ea157c8cc8f8b44b60b23d221b6ba68aa..9f7694d805464a13913030ceb4f36432b3dd3c64 100755 (executable)
@@ -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