X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate39.py;h=c02b9629f0d34536da1c2b5286754dfc5d289217;hb=7ed15b809fd22f3325aed4e4a1ecac4387417437;hp=921895532dde854c01a12c5a08c8c8e18a1bb459;hpb=f5ea296ef78efe7f946652483629379880567725;p=dak.git diff --git a/dak/dakdb/update39.py b/dak/dakdb/update39.py index 92189553..c02b9629 100644 --- a/dak/dakdb/update39.py +++ b/dak/dakdb/update39.py @@ -36,12 +36,12 @@ def do_update(self): print __doc__ try: c = self.db.cursor() - c.execute("INSERT INTO config(name, value) VALUES ('exportpath', '/srv/ftp-master.debian.org/export/changelogs')") - c.execute("ALTER TABLE suite ADD COLUMN britney_changelog text NULL") - c.execute("UPDATE suite SET britney_changelog = '/srv/ftp-master.debian.org/ftp/dists/testing/ChangeLog' WHERE suite_name = 'testing'") + c.execute("INSERT INTO config(name, value) VALUES ('exportpath', 'changelogs')") + c.execute("ALTER TABLE suite ADD COLUMN changelog text NULL") + c.execute("UPDATE suite SET changelog = 'dists/testing/ChangeLog' WHERE suite_name = 'testing'") c.execute("UPDATE config SET value = '39' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, 'Unable to apply table-column update 39, rollback issued. Error message : %s' % (str(msg)) + raise DBUpdateError('Unable to apply table-column update 39, rollback issued. Error message : %s' % (str(msg)))