From: Mark Hymers Date: Fri, 2 Sep 2011 20:48:24 +0000 (+0100) Subject: Change make_overrides to use database config X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=64afccd0bc891c871958d44065c80e93062758f1;p=dak.git Change make_overrides to use database config Signed-off-by: Mark Hymers --- diff --git a/dak/make_overrides.py b/dak/make_overrides.py index 716b085b..1d8f9c02 100755 --- a/dak/make_overrides.py +++ b/dak/make_overrides.py @@ -112,11 +112,9 @@ def main (): d = DBConn() session = d.session() - for suite_name in cnf.SubTree("Check-Overrides::OverrideSuites").List(): - suite = get_suite(suite_name.lower(), session) - if not suite: - utils.fubar('Suite %s not found' % suite_name) + for suite in session.query(Suite).filter(Suite.overrideprocess==True): if suite.untouchable: + print "Skipping %s as it is marked as untouchable" % suite.suite_name continue sys.stderr.write("Processing %s...\n" % (suite.suite_name))