diff options
author | Gregory Lee <lee218@llnl.gov> | 2019-06-18 19:13:12 -0700 |
---|---|---|
committer | Greg Becker <becker33@llnl.gov> | 2019-06-19 04:13:12 +0200 |
commit | 8706ac14792c8259857d45a8396e833f56af60e4 (patch) | |
tree | b841a550fadc2fffa0149bf535342c81e811feb5 /lib | |
parent | 2287dd6165ca0150f243fdee9cbfa8ca92785e37 (diff) | |
download | spack-8706ac14792c8259857d45a8396e833f56af60e4.tar.gz spack-8706ac14792c8259857d45a8396e833f56af60e4.tar.bz2 spack-8706ac14792c8259857d45a8396e833f56af60e4.tar.xz spack-8706ac14792c8259857d45a8396e833f56af60e4.zip |
fixed spec dependence attribute writing. Fixes #11686 (#11776)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/spec.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py index cc1613549f..e861877036 100644 --- a/lib/spack/spack/spec.py +++ b/lib/spack/spack/spec.py @@ -3130,6 +3130,7 @@ class Spec(object): cwrite(f, stream=out, color=color) def write_attribute(spec, attribute, color): + current = spec if attribute.startswith('^'): attribute = attribute[1:] dep, attribute = attribute.split('.', 1) @@ -3140,7 +3141,6 @@ class Spec(object): 'Format string attributes must be non-empty') attribute = attribute.lower() - current = spec sig = '' if attribute[0] in '@%/': # color sigils that are inside braces |