From 677623962ef70e405ecb6c6d8a01fd105dcfe2c5 Mon Sep 17 00:00:00 2001 From: becker33 Date: Sun, 15 Jan 2017 02:36:36 -0800 Subject: Fixed find -lp command (coloring was broken) (#2820) --- lib/spack/spack/cmd/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib') 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: -- cgit v1.2.3-60-g2f50