Skip to content

Commit

Permalink
self update can be used for poetry >= 1.1.7 when installed via `in…
Browse files Browse the repository at this point in the history
…stall-poetry.py`
  • Loading branch information
finswimmer committed Jul 3, 2021
1 parent 4acfd05 commit 79fe5db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install-poetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,14 +421,14 @@ def _is_self_upgrade_supported(x):
return True

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):
self._write(
colorize(
"warning",
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:
Expand Down

0 comments on commit 79fe5db

Please sign in to comment.