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)
|
write_output(line)
|
||||||
if name in installed_packages:
|
if name in installed_packages:
|
||||||
dist = get_distribution(name)
|
dist = get_distribution(name)
|
||||||
|
assert dist is not None
|
||||||
with indent_log():
|
with indent_log():
|
||||||
if dist.version == latest:
|
if dist.version == latest:
|
||||||
write_output('INSTALLED: %s (latest)', dist.version)
|
write_output('INSTALLED: %s (latest)', dist.version)
|
||||||
|
|
Loading…
Reference in New Issue