]> git.decadent.org.uk Git - dak.git/blobdiff - dak/dakdb/update30.py
grant usage for world
[dak.git] / dak / dakdb / update30.py
index d002c690be4e93816f69689a17f268dcac5a8500..f68c74a34a5f7baaaeb5be8f59aa743ebfd6c777 100644 (file)
@@ -58,7 +58,7 @@ def do_update(self):
             JOIN section s on s.id=o.section
             WHERE b.id=$1
             AND o.suite=$2
-            AND o.type in ('deb','udeb')
+            AND ot.type in ('deb','udeb')
             \"\"\",
             ["int", "int"]),
             [TD["new"]["bin"], TD["new"]["suite"]])[0]
@@ -95,6 +95,6 @@ $$ LANGUAGE plpythonu VOLATILE SECURITY DEFINER;
         c.execute("UPDATE config SET value = '30' WHERE name = 'db_revision'")
         self.db.commit()
 
-    except psycopg2.ProgrammingError, msg:
+    except psycopg2.ProgrammingError as msg:
         self.db.rollback()
-        raise DBUpdateError, "Unable to appy debversion updates, rollback issued. Error message : %s" % (str(msg))
+        raise DBUpdateError("Unable to appy debversion updates, rollback issued. Error message : %s" % (str(msg)))