X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate23.py;h=4750c153b767fe21091a27865132b78cd091a9f1;hb=07ad10059f7d5c840d1e1a26b28e518408435110;hp=70f2fc4c779d915d50622cd536e3e066aed85e01;hpb=ad18665944e93dfb719674eca7dfc9fa46833d47;p=dak.git diff --git a/dak/dakdb/update23.py b/dak/dakdb/update23.py index 70f2fc4c..4750c153 100644 --- a/dak/dakdb/update23.py +++ b/dak/dakdb/update23.py @@ -54,7 +54,11 @@ CREATE VIEW srcfiles_suite_component AS JOIN location ON files.location = location.id; """) - except psycopg2.InternalError, msg: + print "Committing" + c.execute("UPDATE config SET value = '23' WHERE name = 'db_revision'") + self.db.commit() + + except psycopg2.InternalError as msg: self.db.rollback() - raise DBUpdateError, "Database error, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Database error, rollback issued. Error message : %s" % (str(msg)))