X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate44.py;h=bce1fe7db3fcd00934836e2f2899c8435662348c;hb=edf9c774f7d5b0148a30fd63bf1fa6bddf68d478;hp=b9c7f5847e5726a11535452150cbb82443fe2b44;hpb=79435b6fcb5a7e543642a489062ed1d044eb7624;p=dak.git diff --git a/dak/dakdb/update44.py b/dak/dakdb/update44.py old mode 100755 new mode 100644 index b9c7f584..bce1fe7d --- a/dak/dakdb/update44.py +++ b/dak/dakdb/update44.py @@ -44,9 +44,9 @@ def do_update(self): for table in ('pending_bin_contents', 'deb_contents', 'udeb_contents'): c.execute("DROP TABLE %s" % table) - c.execute("UPDATE config SET value = '43' WHERE name = 'db_revision'") + c.execute("UPDATE config SET value = '44' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, 'Unable to apply sick update 43, rollback issued. Error message : %s' % (str(msg)) + raise DBUpdateError('Unable to apply sick update 44, rollback issued. Error message : %s' % (str(msg)))