Skip to content

Commit

Permalink
Failure to re-create venv after Poetry update in 5.0.6-0 rpm - contin…
Browse files Browse the repository at this point in the history
…ued3 rockstor#2788

- unset pre 5.0.3-0 VIRTUAL_ENV environmental variable.
  • Loading branch information
phillxnet committed Jan 26, 2024
1 parent 313847f commit 3916780
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ fi
PATH="${PATH//'/root/.local/bin:'/''}" # null all legacy poetry paths
# We are run, outside of development, only by RPM's %posttrans.
# As such our .venv dir has already been removed in %post (update mode).
echo "Unset VIRTUAL_ENV"
# Redundant from rockstor 5.0.3-0 onwards: src/rockstor/system/pkg_mgmt.py
unset VIRTUAL_ENV
PATH="${PATH//'/opt/rockstor/.venv/bin:'/''}" # null now removed .venv from path.

echo "build.sh has PATH=$PATH"
Expand Down

0 comments on commit 3916780

Please sign in to comment.