summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2015-12-14 21:06:32 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2015-12-14 21:06:32 -0800
commit6e074a196a25f5737e50c57bf64b1d452245ef50 (patch)
treebfb3402f75c529387ce9274ece8bb02af9e97689
parent3d39d035c1976d9a1504b0f9ebc20e1cb941fe39 (diff)
downloadspack-6e074a196a25f5737e50c57bf64b1d452245ef50.tar.gz
spack-6e074a196a25f5737e50c57bf64b1d452245ef50.tar.bz2
spack-6e074a196a25f5737e50c57bf64b1d452245ef50.tar.xz
spack-6e074a196a25f5737e50c57bf64b1d452245ef50.zip
Fix #206: need to make deps AND root concrete when read in.
-rw-r--r--lib/spack/spack/directory_layout.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/spack/spack/directory_layout.py b/lib/spack/spack/directory_layout.py
index 056606b429..a434dad5c4 100644
--- a/lib/spack/spack/directory_layout.py
+++ b/lib/spack/spack/directory_layout.py
@@ -212,8 +212,10 @@ class YamlDirectoryLayout(DirectoryLayout):
spec = Spec.from_yaml(f)
# Specs read from actual installations are always concrete
- spec._normal = True
- spec._concrete = True
+ for s in spec.traverse():
+ s._normal = True
+ s._concrete = True
+
return spec