From: Joerg Jaspert Date: Sun, 12 Dec 2010 14:14:18 +0000 (+0100) Subject: In case the component name contains a /, replace it with a _. Works much better when... X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e187b4a74a84dd45bc320c0034b7d51716457cd;p=dak 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 --- 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()