]> err.no Git - dak/commitdiff
disallow deletion of notes for trainees
authorJoerg Jaspert <joerg@debian.org>
Thu, 16 Apr 2009 21:05:30 +0000 (23:05 +0200)
committerJoerg Jaspert <joerg@debian.org>
Thu, 16 Apr 2009 21:05:30 +0000 (23:05 +0200)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
dak/process_new.py

index 1354d9e2ab65381ba1527007413ae0c5318a6c54..52e1f4e9780350d722e533a0a179b0f290a4c577 100755 (executable)
@@ -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"))