summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorScott Wittenburg <scott.wittenburg@kitware.com>2018-11-27 19:13:39 -0600
committerPeter Scheibel <scheibel1@llnl.gov>2018-11-27 17:13:39 -0800
commit33b112a60d88df0c53c125ae4de8202c72e298c6 (patch)
treed9a2ac8deb6ad407d13e579bff4e3a662d6e7acc /lib
parent4c3091b05ee37d0a72f41bd330e0f442bf49a734 (diff)
downloadspack-33b112a60d88df0c53c125ae4de8202c72e298c6.tar.gz
spack-33b112a60d88df0c53c125ae4de8202c72e298c6.tar.bz2
spack-33b112a60d88df0c53c125ae4de8202c72e298c6.tar.xz
spack-33b112a60d88df0c53c125ae4de8202c72e298c6.zip
Expose option to save all dependencies when writing spec.yaml (#9965)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/spec.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py
index f8991413cd..4f84104f84 100644
--- a/lib/spack/spack/spec.py
+++ b/lib/spack/spack/spec.py
@@ -1503,9 +1503,9 @@ class Spec(object):
return syaml_dict([('spec', node_list)])
- def to_yaml(self, stream=None):
+ def to_yaml(self, stream=None, all_deps=False):
return syaml.dump(
- self.to_dict(), stream=stream, default_flow_style=False)
+ self.to_dict(all_deps), stream=stream, default_flow_style=False)
def to_json(self, stream=None):
return sjson.dump(self.to_dict(), stream)