summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Becker <becker33@llnl.gov>2016-05-06 12:05:51 -0700
committerGregory Becker <becker33@llnl.gov>2016-05-06 12:05:51 -0700
commit9f37e4c907782ae44121a8d1c988a463df80f621 (patch)
tree8d3e2c72cb8c0cec2d4f49c8035cd3485953cc01
parentaddcde4f358061053b013374bcf7400ef28acd4f (diff)
downloadspack-9f37e4c907782ae44121a8d1c988a463df80f621.tar.gz
spack-9f37e4c907782ae44121a8d1c988a463df80f621.tar.bz2
spack-9f37e4c907782ae44121a8d1c988a463df80f621.tar.xz
spack-9f37e4c907782ae44121a8d1c988a463df80f621.zip
Made spec hashes immutable once concrete -- improved
-rw-r--r--lib/spack/spack/spec.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py
index b71c1d680c..b604420140 100644
--- a/lib/spack/spack/spec.py
+++ b/lib/spack/spack/spec.py
@@ -762,7 +762,7 @@ class Spec(object):
self.to_node_dict(), default_flow_style=True, width=sys.maxint)
sha = hashlib.sha1(yaml_text)
b32_hash = base64.b32encode(sha.digest()).lower()[:length]
- if self._concrete:
+ if self.concrete:
self.hash = b32_hash
return b32_hash