1
1
Fork 0
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:
Pradyun S. Gedam 2017-06-05 20:00:28 +05:30
parent 7424218b8c
commit 2fc4904213

View file

@ -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(