Environments: fix bug for install of external packages (#10437)

"spack install" will install all packages added to the current
environment. When this included external packages, the environment
update would fail because it would attempt to copy log files that
were only generated if Spack handled the install itself. This skips
that step for external packages.
This commit is contained in:
Peter Scheibel 2019-01-24 21:29:21 -06:00 committed by GitHub
parent 98e0b5b0db
commit 5abf29c971
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -663,6 +663,7 @@ def install_all(self, args=None):
with fs.working_dir(self.path):
spec.package.do_install(**kwargs)
if not spec.external:
# Link the resulting log file into logs dir
build_log_link = os.path.join(
log_path, '%s-%s.log' % (spec.name, spec.dag_hash(7)))