]> git.decadent.org.uk Git - dak.git/blobdiff - dak/dakdb/update10.py
Merge remote-tracking branch 'algernon/f/external_files' into merge
[dak.git] / dak / dakdb / update10.py
old mode 100755 (executable)
new mode 100644 (file)
index 680257e..31c70d3
@@ -2,7 +2,7 @@
 # coding=utf8
 
 """
-Pending contents disinguished by arch
+Add constraints to src_uploaders
 
 @contact: Debian FTP Master <ftpmaster@debian.org>
 @copyright: 2009  Mark Hymers <mhy@debian.org>
@@ -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
+# <mhy> 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)))