From: Joerg Jaspert Date: Wed, 25 Nov 2009 21:04:21 +0000 (+0100) Subject: p-n X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dea5a002320e7a11f7581fccd01b0d857c49600;p=dak p-n call upload.remove_known_changes in a few more places. also give it our session. Signed-off-by: Joerg Jaspert --- diff --git a/dak/process_new.py b/dak/process_new.py index 6bdd301f..b5fd912e 100755 --- a/dak/process_new.py +++ b/dak/process_new.py @@ -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