From ccb537479a72640885b69ffaca263a5f3409f9d1 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Sat, 31 Oct 2020 22:30:28 +0100 Subject: install: one less concretization when installing from file --- lib/spack/spack/cmd/install.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/spack/spack/cmd/install.py b/lib/spack/spack/cmd/install.py index 8803a9f312..c8673b5330 100644 --- a/lib/spack/spack/cmd/install.py +++ b/lib/spack/spack/cmd/install.py @@ -367,14 +367,15 @@ environment variables: with open(file, 'r') as f: s = spack.spec.Spec.from_yaml(f) - if s.concretized().dag_hash() != s.dag_hash(): + concretized = s.concretized() + if concretized.dag_hash() != s.dag_hash(): msg = 'skipped invalid file "{0}". ' msg += 'The file does not contain a concrete spec.' tty.warn(msg.format(file)) continue abstract_specs.append(s) - specs.append(s.concretized()) + specs.append(concretized) if len(specs) == 0: tty.die('The `spack install` command requires a spec to install.') -- cgit v1.2.3-70-g09d2