]> git.decadent.org.uk Git - dak.git/commitdiff
Change make_overrides to use database config
authorMark Hymers <mhy@debian.org>
Fri, 2 Sep 2011 20:48:24 +0000 (21:48 +0100)
committerMark Hymers <mhy@debian.org>
Fri, 2 Sep 2011 20:48:24 +0000 (21:48 +0100)
Signed-off-by: Mark Hymers <mhy@debian.org>
dak/make_overrides.py

index 716b085bdf488f975c541113c70013235b0a67b4..1d8f9c02ca7fc7a6b3fcf6636f0d72e4cffa2b94 100755 (executable)
@@ -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))