]> err.no Git - dak/commitdiff
p-n
authorJoerg Jaspert <joerg@debian.org>
Wed, 25 Nov 2009 21:04:21 +0000 (22:04 +0100)
committerJoerg Jaspert <joerg@debian.org>
Wed, 25 Nov 2009 21:04:21 +0000 (22:04 +0100)
call upload.remove_known_changes in a few more places.
also give it our session.

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

index 6bdd301f23512345c0b485f3c2241302ed3a0a1c..b5fd912e0b30357352bd3699361d883b055096ca 100755 (executable)
@@ -95,6 +95,7 @@ def recheck(upload, session):
 
         if answer == 'R':
             upload.do_reject(manual=0, reject_message='\n'.join(upload.rejects))
+            upload.pkg.remove_known_changes(session=session)
             return 0
         elif answer == 'S':
             return 0
@@ -679,7 +680,7 @@ def do_new(upload, session):
                                        reject_message=Options["Manual-Reject"],
                                        note=get_new_comments(changes.get("source", ""), session=session))
             if not aborted:
-                upload.pkg.remove_known_changes()
+                upload.pkg.remove_known_changes(session=session)
                 Logger.log(["NEW REJECT: %s" % (upload.pkg.changes_file)])
                 done = 1
         elif answer == 'N':
@@ -769,6 +770,7 @@ def do_byhand(upload, session):
         elif answer == 'M':
             Logger.log(["BYHAND REJECT: %s" % (upload.pkg.changes_file)])
             upload.do_reject(manual=1, reject_message=Options["Manual-Reject"])
+            upload.pkg.remove_known_changes(session=session)
             done = 1
         elif answer == 'S':
             done = 1