X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate21.py;h=41cef6dc8c47d70093aa7af54a1e73b08cc887ec;hb=f308b558967796bd5a43013346d8b204592d9b93;hp=2555e4c74715bbf73d9a000f8378172e04a6ecac;hpb=27e00376e81d1c37ff327ee0d39670b266418869;p=dak.git diff --git a/dak/dakdb/update21.py b/dak/dakdb/update21.py old mode 100755 new mode 100644 index 2555e4c7..41cef6dc --- a/dak/dakdb/update21.py +++ b/dak/dakdb/update21.py @@ -115,7 +115,7 @@ def do_update(self): cnf = Config() c.execute("""INSERT INTO queue (queue_name, path) VALUES ('buildd', '%s')""" % cnf["Dir::QueueBuild"].rstrip('/')) - for s in cnf.ValueList("Dinstall::QueueBuildSuites"): + for s in cnf.value_list("Dinstall::QueueBuildSuites"): c.execute("""INSERT INTO suite_queue_copy (suite, queue) VALUES ( (SELECT id FROM suite WHERE suite_name = '%s'), (SELECT id FROM queue WHERE queue_name = 'buildd'))""" % s.lower()) @@ -126,4 +126,4 @@ def do_update(self): 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)))