]> err.no Git - dak/commitdiff
In case the component name contains a /, replace it with a _. Works much better when...
authorJoerg Jaspert <joerg@debian.org>
Sun, 12 Dec 2010 14:14:18 +0000 (15:14 +0100)
committerJoerg Jaspert <joerg@debian.org>
Sun, 12 Dec 2010 14:14:18 +0000 (15:14 +0100)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
dak/make_overrides.py

index 02c7f7c2988843d8f6ffe31364c5e58ca789ac2e..b925d927c294108d3998bb7abcc9703abb307587 100755 (executable)
@@ -141,7 +141,9 @@ def main ():
                 elif otype_name == "dsc":
                     suffix = ".src"
 
-                filename = os.path.join(cnf["Dir::Override"], "override.%s.%s%s" % (override_suite, component.component_name, suffix))
+                cname = component.component_name.replace('/', '_')
+                filename = os.path.join(cnf["Dir::Override"], "override.%s.%s%s" % (override_suite, cname, suffix))
+
                 output_file = utils.open_file(filename, 'w')
                 do_list(output_file, suite, component, otype, session)
                 output_file.close()