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):
|
||||
strategy = getattr(options, "upgrade_strategy", "not-allowed")
|
||||
if not options.upgrade:
|
||||
upgrade = getattr(options, "upgrade", False)
|
||||
if not upgrade:
|
||||
strategy = "not-allowed"
|
||||
|
||||
return Resolver(
|
||||
|
|
Loading…
Reference in a new issue