mirror of https://github.com/pypa/pip
Work around lax semantics in commands.search
This commit is contained in:
parent
8491ce7723
commit
c04182893a
|
@ -140,6 +140,7 @@ def print_results(hits, name_column_width=None, terminal_width=None):
|
|||
write_output(line)
|
||||
if name in installed_packages:
|
||||
dist = get_distribution(name)
|
||||
assert dist is not None
|
||||
with indent_log():
|
||||
if dist.version == latest:
|
||||
write_output('INSTALLED: %s (latest)', dist.version)
|
||||
|
|
Loading…
Reference in New Issue