summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-10-28 10:53:38 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2016-10-30 23:55:00 -0700
commit58e76721b9960cd569d7f22486bd17f587645fd3 (patch)
tree7feece4be7b2c5bc09a4d027221baa138ee9ef5c
parentda760a66de8370ad73eadfe7a38a7cb6782c99bc (diff)
downloadspack-58e76721b9960cd569d7f22486bd17f587645fd3.tar.gz
spack-58e76721b9960cd569d7f22486bd17f587645fd3.tar.bz2
spack-58e76721b9960cd569d7f22486bd17f587645fd3.tar.xz
spack-58e76721b9960cd569d7f22486bd17f587645fd3.zip
Make provider_index use spack yaml for cleaner output.
-rw-r--r--lib/spack/spack/provider_index.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/spack/spack/provider_index.py b/lib/spack/spack/provider_index.py
index d7f2379486..6bcf98009e 100644
--- a/lib/spack/spack/provider_index.py
+++ b/lib/spack/spack/provider_index.py
@@ -28,7 +28,7 @@ The ``virtual`` module contains utility classes for virtual dependencies.
from itertools import product as iproduct
from pprint import pformat
-import yaml
+import spack.util.spack_yaml as syaml
from yaml.error import MarkedYAMLError
import spack
@@ -190,13 +190,13 @@ class ProviderIndex(object):
lambda vpkg, pset: [
vpkg.to_node_dict(), [p.to_node_dict() for p in pset]], list)
- yaml.dump({'provider_index': {'providers': provider_list}},
- stream=stream)
+ syaml.dump({'provider_index': {'providers': provider_list}},
+ stream=stream)
@staticmethod
def from_yaml(stream):
try:
- yfile = yaml.load(stream)
+ yfile = syaml.load(stream)
except MarkedYAMLError, e:
raise spack.spec.SpackYAMLError(
"error parsing YAML ProviderIndex cache:", str(e))