Fixed find -lp command (coloring was broken) (#2820)

This commit is contained in:
becker33 2017-01-15 02:36:36 -08:00 committed by Todd Gamblin
parent 5c4d2627ff
commit 677623962e

View File

@ -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: