Commit 3c574c8f authored by Nirbheek Chauhan's avatar Nirbheek Chauhan 🐜
Browse files

cerbero/bootstrap: Set and unset the build-tools env properly

When we cook the build-tools recipe, we temporarily override the
current environment with one derived from the build-tools
configuration, cook, and then re-set back to the old env.

We stopped doing this correctly after splitting out the 'fetch' step.
This caused a bootstrap failure because part of our build step was
using the wrong configuration.
parent d7fa14b8
......@@ -72,6 +72,7 @@ class BuildTools (BootstrapperBase, Fetch):
self.BUILD_TOOLS += self.config.extra_build_tools
def _setup_env(self):
# Use a common prefix for the build tools for all the configurations
# so that it can be reused
config = Config()
......@@ -102,9 +103,12 @@ class BuildTools (BootstrapperBase, Fetch): += self.PLAT_BUILD_TOOLS.get(self.config.platform, [])
def start(self):
oven = Oven(, self.cookbook)
def fetch_recipes(self):
Fetch.fetch(self.cookbook,, False, False, False, False)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment