diff options
author | becker33 <becker33@llnl.gov> | 2017-01-15 02:36:36 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2017-01-15 02:36:36 -0800 |
commit | 677623962ef70e405ecb6c6d8a01fd105dcfe2c5 (patch) | |
tree | 9d70c13e489ccfe89d4fdc591e6acf54e065e175 /lib | |
parent | 5c4d2627ff4e348969ca710d2a9d69b10db48096 (diff) | |
download | spack-677623962ef70e405ecb6c6d8a01fd105dcfe2c5.tar.gz spack-677623962ef70e405ecb6c6d8a01fd105dcfe2c5.tar.bz2 spack-677623962ef70e405ecb6c6d8a01fd105dcfe2c5.tar.xz spack-677623962ef70e405ecb6c6d8a01fd105dcfe2c5.zip |
Fixed find -lp command (coloring was broken) (#2820)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/cmd/__init__.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/spack/spack/cmd/__init__.py b/lib/spack/spack/cmd/__init__.py index bcc4524b4f..3e83dbb789 100644 --- a/lib/spack/spack/cmd/__init__.py +++ b/lib/spack/spack/cmd/__init__.py @@ -219,9 +219,8 @@ def display_specs(specs, **kwargs): format = " %%-%ds%%s" % width for abbrv, spec in zip(abbreviated, specs): - if hashes: - print(gray_hash(spec, hlen), ) - print(format % (abbrv, spec.prefix)) + prefix = gray_hash(spec, hlen) if hashes else '' + print prefix + (format % (abbrv, spec.prefix)) elif mode == 'deps': for spec in specs: |