environment installs: fix reporting. (#20004)

PR #15702 changed the invocation of the report context when installing
specs, do the same when building environments.
This commit is contained in:
Matthias Wolf 2020-12-04 00:04:13 +01:00 committed by Tamara Dahlgren
parent 30290acf67
commit b4f79f3cb7

View File

@ -255,7 +255,7 @@ def install(parser, args, **kwargs):
reporter.specs = specs
tty.msg("Installing environment {0}".format(env.name))
with reporter:
with reporter('build'):
env.install_all(args, **kwargs)
tty.debug("Regenerating environment views for {0}"