mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Even upgrade is not available in download or wheel
This commit is contained in:
parent
7424218b8c
commit
2fc4904213
|
@ -356,7 +356,8 @@ class RequirementCommand(Command):
|
||||||
|
|
||||||
def _build_resolver(self, options, finder):
|
def _build_resolver(self, options, finder):
|
||||||
strategy = getattr(options, "upgrade_strategy", "not-allowed")
|
strategy = getattr(options, "upgrade_strategy", "not-allowed")
|
||||||
if not options.upgrade:
|
upgrade = getattr(options, "upgrade", False)
|
||||||
|
if not upgrade:
|
||||||
strategy = "not-allowed"
|
strategy = "not-allowed"
|
||||||
|
|
||||||
return Resolver(
|
return Resolver(
|
||||||
|
|
Loading…
Reference in a new issue