]> err.no Git - dak/commitdiff
daklib/checks.py: allow DMs to upload to all suites
authorAnsgar Burchardt <ansgar@debian.org>
Mon, 9 Jul 2012 16:00:52 +0000 (10:00 -0600)
committerAnsgar Burchardt <ansgar@debian.org>
Fri, 13 Jul 2012 16:43:45 +0000 (10:43 -0600)
DMs may upload to all suites, but only the highest version currently in
unstable, experimental or *-backports will be considered for DM-U-A.

daklib/checks.py

index 9131bbadbe220e574b966dd099200329f1dd77c3..f064a52501d43a273c9bae97aa654f3916056da2 100644 (file)
@@ -315,15 +315,12 @@ class ACLCheck(Check):
 
         if 'source' not in upload.changes.architectures:
             raise Reject('DM uploads must include source')
-        distributions = upload.changes.distributions
-        for dist in distributions:
-            if dist not in ('unstable', 'experimental', 'squeeze-backports'):
-                raise Reject("Uploading to {0} is not allowed for DMs.".format(dist))
         for f in upload.changes.files.itervalues():
             if f.section == 'byhand' or f.section[:4] == "raw-":
                 raise Reject("Uploading byhand packages is not allowed for DMs.")
 
         # Reject NEW packages
+        distributions = upload.changes.distributions
         assert len(distributions) == 1
         suite = session.query(Suite).filter_by(suite_name=distributions[0]).one()
         overridesuite = suite