From b27571781a74600affa9fbdc318c061a09e82e9a Mon Sep 17 00:00:00 2001 From: vectorsli <104021830+vectorsli@users.noreply.github.com> Date: Thu, 14 Jul 2022 17:36:47 +0200 Subject: [PATCH] Allow conan new templates to contain Readme.md and LICENSE.txt files --- 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)