]> git.decadent.org.uk Git - dak.git/commitdiff
process-policy: REJECT before ACCEPT
authorAnsgar Burchardt <ansgar@debian.org>
Fri, 14 Feb 2014 11:15:43 +0000 (12:15 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Fri, 14 Feb 2014 11:15:43 +0000 (12:15 +0100)
If both ACCEPT.* and REJECT.* comments are available, the package
should be rejected. So process REJECT.* first.

dak/process_policy.py

index 7dd55a8300d3020b21bffa25597b76ad5a85604d..2890c8615403b4017710e711194de46f7cda7f7b 100755 (executable)
@@ -419,9 +419,9 @@ def main():
         # The comments stuff relies on being in the right directory
         os.chdir(pq.path)
 
+        do_comments(commentsdir, pq, "REJECT.", "REJECTED.", "NOTOK", comment_reject, transaction)
         do_comments(commentsdir, pq, "ACCEPT.", "ACCEPTED.", "OK", comment_accept, transaction)
         do_comments(commentsdir, pq, "ACCEPTED.", "ACCEPTED.", "OK", comment_accept, transaction)
-        do_comments(commentsdir, pq, "REJECT.", "REJECTED.", "NOTOK", comment_reject, transaction)
 
         remove_unreferenced_binaries(pq, transaction)
         remove_unreferenced_sources(pq, transaction)