Skip to content
Snippets Groups Projects
Commit 5aed6329 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Make technique work with more complex recipes

parent e5bf85a6
No related branches found
No related tags found
No related merge requests found
......@@ -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():]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment