X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate4.py;h=a6456bea8095c7dd557f0a92854fa1ea5df42cb5;hb=8edf5e1387ee12c35076a8c60f61e71cd6cb8e23;hp=169653fa4397caa7f4fd9e89b67b873553c419f7;hpb=27e00376e81d1c37ff327ee0d39670b266418869;p=dak.git diff --git a/dak/dakdb/update4.py b/dak/dakdb/update4.py old mode 100755 new mode 100644 index 169653fa..a6456bea --- a/dak/dakdb/update4.py +++ b/dak/dakdb/update4.py @@ -53,9 +53,9 @@ def do_update(self): for suite in s: suites[suite[1]]=suite[0] - for suite in Cnf.SubTree("Suite").List(): + for suite in Cnf.subtree("Suite").list(): print "Processing suite %s" % (suite) - architectures = Cnf.SubTree("Suite::" + suite).ValueList("Architectures") + architectures = Cnf.subtree("Suite::" + suite).value_list("Architectures") suite = suite.lower() for arch in architectures: c.execute(query, [suites[suite], archs[arch]]) @@ -66,4 +66,4 @@ def do_update(self): except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, "Unable to apply sanity to suite_architecture table, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Unable to apply sanity to suite_architecture table, rollback issued. Error message : %s" % (str(msg)))