summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2015-12-11 16:47:34 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2015-12-11 16:47:34 -0800
commitafbd0e77d0754227b799ae3872d8775ceec0ccd0 (patch)
tree27e49288e6524ef25d1fd52d79dd8f27b6a81b25 /lib
parent3dd6cbc556458ff5776988d12927b9d93c326b64 (diff)
downloadspack-afbd0e77d0754227b799ae3872d8775ceec0ccd0.tar.gz
spack-afbd0e77d0754227b799ae3872d8775ceec0ccd0.tar.bz2
spack-afbd0e77d0754227b799ae3872d8775ceec0ccd0.tar.xz
spack-afbd0e77d0754227b799ae3872d8775ceec0ccd0.zip
Make internal hash dep sort order match external one.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/spec.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py
index 483da03c47..fb5ea5d02b 100644
--- a/lib/spack/spack/spec.py
+++ b/lib/spack/spack/spec.py
@@ -1506,7 +1506,8 @@ class Spec(object):
2. The hash of each of this node's dependencies' cmp_keys.
"""
return self._cmp_node() + (
- tuple(sorted(hash(d) for d in self.dependencies.values())),)
+ tuple(hash(self.dependencies[name])
+ for name in sorted(self.dependencies)),)
def colorized(self):