Commit 82dd1bd8 by Sébastien Eustace Committed by GitHub

Merge pull request #4249 from finswimmer/installer-upgrade-warning

Fix warning about  self update when using install-poetry.py
parents 22c3aadd b47de09d
...@@ -421,14 +421,14 @@ class Installer: ...@@ -421,14 +421,14 @@ class Installer:
return True return True
vx = tuple(int(p) for p in mx.groups()[:3]) + (mx.group(5),) vx = tuple(int(p) for p in mx.groups()[:3]) + (mx.group(5),)
return vx >= (1, 2, 0) return vx >= (1, 1, 7)
if version and not _is_self_upgrade_supported(version): if version and not _is_self_upgrade_supported(version):
self._write( self._write(
colorize( colorize(
"warning", "warning",
f"You are installing {version}. When using the current installer, this version does not support " f"You are installing {version}. When using the current installer, this version does not support "
f"updating using the 'self update' command. Please use 1.2.0a1 or later.", f"updating using the 'self update' command. Please use 1.1.7 or later.",
) )
) )
if not self._accept_all: if not self._accept_all:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment