[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] process-policy: REJECT before ACCEPT



If both ACCEPT.* and REJECT.* comments are available, the package
should be rejected. So process REJECT.* first.
---
 dak/process_policy.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dak/process_policy.py b/dak/process_policy.py
index 7dd55a8..2890c86 100755
--- a/dak/process_policy.py
+++ b/dak/process_policy.py
@@ -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)
-- 
1.7.10.4


Reply to: