]> git.decadent.org.uk Git - dak.git/commitdiff
p-n
authorJoerg Jaspert <joerg@debian.org>
Sun, 22 Nov 2009 23:08:32 +0000 (00:08 +0100)
committerJoerg Jaspert <joerg@debian.org>
Sun, 22 Nov 2009 23:08:32 +0000 (00:08 +0100)
only remove known changes if reject isnt aborted

Signed-off-by: Joerg Jaspert <joerg@debian.org>
dak/process_new.py

index 9f7694d805464a13913030ceb4f36432b3dd3c64..6bdd301f23512345c0b485f3c2241302ed3a0a1c 100755 (executable)
@@ -675,11 +675,11 @@ def do_new(upload, session):
         elif answer == 'E' and not Options["Trainee"]:
             new = edit_overrides (new, upload, session)
         elif answer == 'M' and not Options["Trainee"]:
-            upload.pkg.remove_known_changes()
             aborted = upload.do_reject(manual=1,
                                        reject_message=Options["Manual-Reject"],
                                        note=get_new_comments(changes.get("source", ""), session=session))
             if not aborted:
+                upload.pkg.remove_known_changes()
                 Logger.log(["NEW REJECT: %s" % (upload.pkg.changes_file)])
                 done = 1
         elif answer == 'N':