From 64afccd0bc891c871958d44065c80e93062758f1 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Fri, 2 Sep 2011 21:48:24 +0100 Subject: [PATCH] Change make_overrides to use database config Signed-off-by: Mark Hymers --- dak/make_overrides.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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)) -- 2.39.5