X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate22.py;h=5c852c67024f0b6a73e4595d51c3ae4f33067ebb;hb=4174286376153578f1444aa0afcfa2b5bfe1fe61;hp=b6fbbb447b37ac776085ca91efeb1449f63fd21f;hpb=0872b2e0b78670c91fd2bf0bda52e5761e079820;p=dak.git diff --git a/dak/dakdb/update22.py b/dak/dakdb/update22.py index b6fbbb44..5c852c67 100755 --- a/dak/dakdb/update22.py +++ b/dak/dakdb/update22.py @@ -69,7 +69,7 @@ def do_update(self): for q in c.fetchall(): queues[q[0]] = q[1] - if q[1] in ['accepted', 'buildd']: + if q[1] in ['accepted', 'buildd', 'embargoed', 'unembargoed']: # Move to build_queue_table c.execute("""INSERT INTO build_queue (queue_name, path, copy_files) VALUES ('%s', '%s', '%s')""" % (q[1], q[2], q[3])) @@ -235,6 +235,6 @@ def do_update(self): c.execute("UPDATE config SET value = '22' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.InternalError, msg: + except psycopg2.InternalError as msg: self.db.rollback() - raise DBUpdateError, "Unable to apply queue_build 21, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Unable to apply queue_build 21, rollback issued. Error message : %s" % (str(msg)))