summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2022-04-12 16:51:09 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2022-05-13 10:45:12 -0700
commit9d9e97036794b163ab0c71165a99851de1f054c7 (patch)
treed138710b15d0ed50d5ad81ce8cb643cf355b382d
parent283a4e60684c8cb0d8f70b2c2660546be55a8f59 (diff)
downloadspack-9d9e97036794b163ab0c71165a99851de1f054c7.tar.gz
spack-9d9e97036794b163ab0c71165a99851de1f054c7.tar.bz2
spack-9d9e97036794b163ab0c71165a99851de1f054c7.tar.xz
spack-9d9e97036794b163ab0c71165a99851de1f054c7.zip
fix full hash calls in `spack graph`
-rw-r--r--lib/spack/spack/graph.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/spack/spack/graph.py b/lib/spack/spack/graph.py
index 8be490a74d..502e5534eb 100644
--- a/lib/spack/spack/graph.py
+++ b/lib/spack/spack/graph.py
@@ -406,12 +406,12 @@ class AsciiGraph(object):
# Colors associated with each node in the DAG.
# Edges are colored by the node they point to.
self._name_to_color = {
- spec.full_hash(): self.colors[i % len(self.colors)]
+ spec.dag_hash(): self.colors[i % len(self.colors)]
for i, spec in enumerate(nodes_in_topological_order)
}
# Frontier tracks open edges of the graph as it's written out.
- self._frontier = [[spec.full_hash()]]
+ self._frontier = [[spec.dag_hash()]]
while self._frontier:
# Find an unexpanded part of frontier
i = find(self._frontier, lambda f: len(f) > 1)
@@ -488,14 +488,14 @@ class AsciiGraph(object):
node = nodes_in_topological_order.pop()
# Find the named node in the frontier and draw it.
- i = find(self._frontier, lambda f: node.full_hash() in f)
+ i = find(self._frontier, lambda f: node.dag_hash() in f)
self._node_line(i, node)
# Replace node with its dependencies
self._frontier.pop(i)
deps = node.dependencies(deptype=self.deptype)
if deps:
- deps = sorted((d.full_hash() for d in deps), reverse=True)
+ deps = sorted((d.dag_hash() for d in deps), reverse=True)
self._connect_deps(i, deps, "new-deps") # anywhere.
elif self._frontier: