]> err.no Git - dak/commitdiff
p-n
authorJoerg Jaspert <joerg@debian.org>
Wed, 25 Nov 2009 21:05:26 +0000 (22:05 +0100)
committerJoerg Jaspert <joerg@debian.org>
Wed, 25 Nov 2009 21:05:26 +0000 (22:05 +0100)
make sure to commit after we rejected stuff and changed database.

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

index b5fd912e0b30357352bd3699361d883b055096ca..7841a7d765003f23f08874257713009d894fc41a 100755 (executable)
@@ -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