]> err.no Git - dak/commitdiff
fix handling of suite names
authorMark Hymers <mhy@debian.org>
Mon, 26 Oct 2009 14:50:29 +0000 (14:50 +0000)
committerMark Hymers <mhy@debian.org>
Mon, 26 Oct 2009 14:50:29 +0000 (14:50 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
dak/generate_releases.py

index d9db95d11259ccf690a10569330190fc70e71a6a..9de4614da4d97530678125ae0580a16c86529572 100755 (executable)
@@ -198,8 +198,12 @@ def main ():
     for suitename in suites:
         print "Processing: " + suitename
         SuiteBlock = Cnf.SubTree("Suite::" + suitename)
-        suiteobj = get_suite(suitename)
+        suiteobj = get_suite(suitename.lower())
+        if not suiteobj:
+            print "ALERT: Cannot find suite %s!" % (suitename.lower())
+            continue
 
+        # Use the canonical name
         suite = suiteobj.suite_name.lower()
 
         if suiteobj.untouchable and not Options["Force-Touch"]: