environment views: refactor stripping build deps (#12069)
This commit is contained in:
parent
8ec098716b
commit
67cd524e93
1 changed files with 1 additions and 3 deletions
|
@ -472,9 +472,7 @@ def regenerate(self, all_specs, roots):
|
|||
# recognize environment specs (which do store build deps), then
|
||||
# they need to be stripped
|
||||
if spec.concrete: # Do not link unconcretized roots
|
||||
specs_for_view.append(spack.spec.Spec.from_dict(
|
||||
spec.to_dict(all_deps=False)
|
||||
))
|
||||
specs_for_view.append(spec.copy(deps=('link', 'run')))
|
||||
|
||||
if self.select:
|
||||
specs_for_view = list(filter(self.select_fn, specs_for_view))
|
||||
|
|
Loading…
Reference in a new issue