mirror of https://github.com/pypa/pip
Restore the list of versions on an error
This commit is contained in:
parent
ef139c52ee
commit
c6755faab6
|
@ -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)**
|
||||
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue