Restore the list of versions on an error

This commit is contained in:
Donald Stufft 2014-12-22 14:00:12 -05:00
parent ef139c52ee
commit c6755faab6
2 changed files with 7 additions and 2 deletions

View File

@ -6,6 +6,9 @@
* Fix a confusing error message when an exceptions was raised at certain
points in pip's execution.
* Fix the missing list of versions when a version cannot be found that matches
the specifiers.
**6.0 (2014-12-22)**

View File

@ -431,10 +431,12 @@ class PackageFinder(object):
),
)
)
all_versions = [x for x in all_versions if x.version in _versions]
applicable_versions = [
x for x in all_versions if x.version in _versions
]
# Finally add our existing versions to the front of our versions.
applicable_versions = installed_version + all_versions
applicable_versions = installed_version + applicable_versions
applicable_versions = self._sort_versions(applicable_versions)
existing_applicable = any(