mirror of https://github.com/pypa/pip
Reverse if statement's condition
This commit is contained in:
parent
8db354260a
commit
4e4951066d
|
@ -546,7 +546,18 @@ class InstallCommand(RequirementCommand):
|
||||||
return
|
return
|
||||||
|
|
||||||
parts = [] # type: List[str]
|
parts = [] # type: List[str]
|
||||||
if new_resolver:
|
if not new_resolver:
|
||||||
|
parts.append(
|
||||||
|
"After October 2020 you may experience errors when installing "
|
||||||
|
"or updating packages. This is because pip will change the "
|
||||||
|
"way that it resolves dependency conflicts.\n"
|
||||||
|
)
|
||||||
|
parts.append(
|
||||||
|
"We recommend you use --use-feature=2020-resolver to test "
|
||||||
|
"your packages with the new resolver before it becomes the "
|
||||||
|
"default.\n"
|
||||||
|
)
|
||||||
|
else:
|
||||||
# NOTE: trailing newlines here are intentional
|
# NOTE: trailing newlines here are intentional
|
||||||
parts.append(
|
parts.append(
|
||||||
"Pip will install or upgrade your package(s) and its "
|
"Pip will install or upgrade your package(s) and its "
|
||||||
|
@ -559,17 +570,6 @@ class InstallCommand(RequirementCommand):
|
||||||
"If you would like pip to take your other packages into "
|
"If you would like pip to take your other packages into "
|
||||||
"account, please tell us here: {}\n".format(form_link)
|
"account, please tell us here: {}\n".format(form_link)
|
||||||
)
|
)
|
||||||
else:
|
|
||||||
parts.append(
|
|
||||||
"After October 2020 you may experience errors when installing "
|
|
||||||
"or updating packages. This is because pip will change the "
|
|
||||||
"way that it resolves dependency conflicts.\n"
|
|
||||||
)
|
|
||||||
parts.append(
|
|
||||||
"We recommend you use --use-feature=2020-resolver to test "
|
|
||||||
"your packages with the new resolver before it becomes the "
|
|
||||||
"default.\n"
|
|
||||||
)
|
|
||||||
|
|
||||||
# NOTE: There is some duplication here, with commands/check.py
|
# NOTE: There is some duplication here, with commands/check.py
|
||||||
for project_name in missing:
|
for project_name in missing:
|
||||||
|
|
Loading…
Reference in New Issue