Skip to content

Commit

Permalink
Failure to remove legacy poetry version in 5.0.6-0 rpm rockstor#2782
Browse files Browse the repository at this point in the history
Add legacy poetry install path to avoid failing its uninstall.
Without this additional path, when build.sh is run from within
RPM's constrained %posttrans scriptlet, we fail to find and
uninstall our prior 1.1.15 poetry version. This leads to having
both poetry 1.1.15 (via upstream installer) and our new pipx
installed poetry 1.7.1.
  • Loading branch information
phillxnet committed Jan 22, 2024
1 parent 0195711 commit 4e7fbcc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -o errexit

# Install Poetry, a dependency management, packaging, and build system.
# Uninstall legacy/transitional Poetry version of 1.1.15
PATH="$HOME/.local/bin:$PATH" # account for more constrained environments.
if which poetry && poetry --version | grep -q "1.1.15"; then
echo "Poetry version 1.1.15 found - UNINSTALLING"
curl -sSL https://install.python-poetry.org | python3 - --uninstall
Expand Down

0 comments on commit 4e7fbcc

Please sign in to comment.