From 5aed63290a171e4e3ac40dcfaa6fad6b3b5179b2 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Wed, 28 Feb 2018 16:26:40 +0100 Subject: [PATCH] Make technique work with more complex recipes --- conda/conda-bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conda/conda-bootstrap.py b/conda/conda-bootstrap.py index 69d379e..ac36531 100755 --- a/conda/conda-bootstrap.py +++ b/conda/conda-bootstrap.py @@ -57,7 +57,7 @@ def get_rendered_recipe(python, path): # writes a temporary recipe without bob-devel orig = os.path.join(path, 'meta.yaml') contents = open(orig).read() - result = re.search(r'requirements:\s*\n\s*host:\s*\n', contents) + result = re.search(r'requirements:\s*\n.+host:\s*\n', contents, re.DOTALL) contents = contents[:result.end()] + \ ' - bob-devel {{ bob_devel }}.*\n' + \ contents[result.end():] -- GitLab