From 237b26c19a9cc586825dcbfb90dd4140c5660e10 Mon Sep 17 00:00:00 2001 From: vectorsli <104021830+vectorsli@users.noreply.github.com> Date: Tue, 26 Jul 2022 10:49:33 +0200 Subject: [PATCH] Allow conan new templates to contain Readme.md and LICENSE.txt files (#11645) --- conans/client/conf/config_installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conans/client/conf/config_installer.py b/conans/client/conf/config_installer.py index e6f1e25ab7c..4e54c6b9bbf 100644 --- a/conans/client/conf/config_installer.py +++ b/conans/client/conf/config_installer.py @@ -113,7 +113,7 @@ def _process_file(directory, filename, config, cache, output, folder): raise ConanException("remotes.json install is not supported yet. Use 'remotes.txt'") else: # This is ugly, should be removed in Conan 2.0 - if filename in ("README.md", "LICENSE.txt"): + if filename in ("README.md", "LICENSE.txt") and not directory.startswith("templates"): output.info("Skip %s" % filename) else: relpath = os.path.relpath(directory, folder)