From 8e187b4a74a84dd45bc320c0034b7d51716457cd Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Sun, 12 Dec 2010 15:14:18 +0100 Subject: [PATCH] In case the component name contains a /, replace it with a _. Works much better when using this as part of a filename Signed-off-by: Joerg Jaspert --- dak/make_overrides.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dak/make_overrides.py b/dak/make_overrides.py index 02c7f7c2..b925d927 100755 --- a/dak/make_overrides.py +++ b/dak/make_overrides.py @@ -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() -- 2.39.5