From: Joerg Jaspert Date: Wed, 25 Nov 2009 21:05:26 +0000 (+0100) Subject: p-n X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=605e0e2205fbfda4f79d691708cd87f400dc9a1c;p=dak.git p-n make sure to commit after we rejected stuff and changed database. Signed-off-by: Joerg Jaspert --- diff --git a/dak/process_new.py b/dak/process_new.py index b5fd912e..7841a7d7 100755 --- a/dak/process_new.py +++ b/dak/process_new.py @@ -96,6 +96,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) + session.commit() return 0 elif answer == 'S': return 0 @@ -681,6 +682,7 @@ def do_new(upload, session): note=get_new_comments(changes.get("source", ""), session=session)) if not aborted: upload.pkg.remove_known_changes(session=session) + session.commit() Logger.log(["NEW REJECT: %s" % (upload.pkg.changes_file)]) done = 1 elif answer == 'N': @@ -771,6 +773,7 @@ def do_byhand(upload, session): 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) + session.commit() done = 1 elif answer == 'S': done = 1