From: Adam Glasgall Date: Thu, 18 Apr 2013 22:33:19 +0000 (-0400) Subject: update for new sqlalchemy api X-Git-Tag: 0.1.28~7 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/commitdiff_plain/8d71c7234361c4ef964ee0915e443288442b5c7c update for new sqlalchemy api --- diff --git a/debian/changelog b/debian/changelog index 1dab637..52f5a56 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +invirt-dev (0.1.24~glasgall4) precise; urgency=low + + * Replace calls to session.save_or_update with session.add (removal of + deprecated API use) + + -- Adam Glasgall Thu, 18 Apr 2013 18:32:24 -0400 + invirt-dev (0.1.24~glasgall3ubuntu1) precise; urgency=low * Change Depends on emacs21 to emacs, now that emacs22 and up are a thing. diff --git a/invirtibuilder b/invirtibuilder index fd1417f..0e5ef50 100755 --- a/invirtibuilder +++ b/invirtibuilder @@ -330,7 +330,7 @@ def build(): db.pocket = pocket db.commit = commit db.principal = principal - database.session.save_or_update(db) + database.session.add(db) database.session.commit() database.session.begin() @@ -415,7 +415,7 @@ def build(): if logfile is not None: logfile.close() - database.session.save_or_update(db) + database.session.add(db) database.session.commit() # Finally, now that everything is done, remove the