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

[dak/master] disallow deletion of notes for trainees



Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
 dak/process_new.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dak/process_new.py b/dak/process_new.py
index 1354d9e..52e1f4e 100755
--- a/dak/process_new.py
+++ b/dak/process_new.py
@@ -703,7 +703,7 @@ def do_new():
             edit_note(database.get_new_comments(changes.get("source", "")))
         elif answer == 'P' and not Options["Trainee"]:
             prod_maintainer(database.get_new_comments(changes.get("source", "")))
-        elif answer == 'R':
+        elif answer == 'R' and not Options["Trainee"]:
             confirm = utils.our_raw_input("Really clear note (y/N)? ").lower()
             if confirm == "y":
                 database.delete_new_comments(changes.get("source"), changes.get("version"))
-- 
1.5.6.5


Reply to: