X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate10.py;h=31c70d379206504bf48b56ef7570f2137bb1bbfe;hb=f0aecfc41de9927d255402dafcae4eeb6a9fd5f8;hp=680257ed932f85e4e4c67fec6bf2f67ac925a71e;hpb=351ad12c1e12fb080a0299c1cf13cfa5c91b8593;p=dak.git diff --git a/dak/dakdb/update10.py b/dak/dakdb/update10.py old mode 100755 new mode 100644 index 680257ed..31c70d37 --- a/dak/dakdb/update10.py +++ b/dak/dakdb/update10.py @@ -2,7 +2,7 @@ # coding=utf8 """ -Pending contents disinguished by arch +Add constraints to src_uploaders @contact: Debian FTP Master @copyright: 2009 Mark Hymers @@ -25,9 +25,7 @@ Pending contents disinguished by arch ################################################################################ -# * Ganneff ponders how to best write the text to -devel. (need to tell em in -# case they find more bugs). "We fixed the fucking idiotic broken implementation -# to be less so" is probably not the nicest, even if perfect valid, way to say so +# oh no, Ganneff has just corrected my english ################################################################################ @@ -53,6 +51,6 @@ def do_update(self): c.execute("UPDATE config SET value = '10' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, "Unable to apply suite config updates, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Unable to apply suite config updates, rollback issued. Error message : %s" % (str(msg)))