1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

no need to recheck what we have just inserted

This commit is contained in:
Xavier Fernandez 2015-03-08 16:35:25 +01:00
parent 897e18f004
commit 7471ede36d

View file

@ -448,12 +448,11 @@ class PackageFinder(object):
INSTALLED_VERSION,
)
)
existing_applicable = True
else:
existing_applicable = False
applicable_versions = self._sort_versions(applicable_versions)
existing_applicable = any(
i.location is INSTALLED_VERSION
for i in applicable_versions
)
if not upgrade and existing_applicable:
if applicable_versions[0].location is INSTALLED_VERSION: