]> err.no Git - dak/commitdiff
Stop processing uploads to forbidden suites earlier.
authorAnsgar Burchardt <ansgar@debian.org>
Wed, 27 Feb 2013 12:25:52 +0000 (13:25 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Wed, 27 Feb 2013 12:25:52 +0000 (13:25 +0100)
daklib/archive.py

index 3a9fd5d3b0a6930b770958d642bb98c2173d1062..ecd5932494d14a88ea761a094bbb37ff6e613acd 100644 (file)
@@ -718,7 +718,7 @@ class ArchiveUpload(object):
             elif rtype == "reject":
                 rejected = fields[1]
                 if suite_name == rejected:
-                    self.reject_reasons.append('Uploads to {0} are not accepted.'.format(rejected))
+                    raise checks.Reject('Uploads to {0} are not accepted.'.format(rejected))
             ## XXX: propup-version and map-unreleased not yet implemented
         return suite_name