X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate61.py;h=3b18e0b37654e97950161f2580c2af525636be28;hb=6cc75beccd14c9b39621cb5894d67cec24750405;hp=952dea4990a505591262f7cc5bb2baeaee8e4a9a;hpb=9306146331b42eb2c2a9500ee759f0373a4c2d02;p=dak.git diff --git a/dak/dakdb/update61.py b/dak/dakdb/update61.py index 952dea49..3b18e0b3 100755 --- a/dak/dakdb/update61.py +++ b/dak/dakdb/update61.py @@ -46,9 +46,10 @@ def do_update(self): ORDER BY source_suite, condition, target_suite; """) + c.execute("GRANT SELECT on version_checks TO PUBLIC;") c.execute("UPDATE config SET value = '61' 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 61, rollback issued. Error message : %s' % (str(msg)) + raise DBUpdateError('Unable to apply sick update 61, rollback issued. Error message : %s' % (str(msg)))