From fae13a3032c528dc04d2b377da0340ee4dc27bc4 Mon Sep 17 00:00:00 2001 From: Philip Guyton Date: Mon, 14 Aug 2023 17:57:10 +0100 Subject: [PATCH] Web-UI update fails to recreate venv #2652 Unset no longer required, and counterproductive to Poetry venv rebuild, VIRTUAL_ENV environmental variable within the programmatically created AT update script. --- src/rockstor/system/pkg_mgmt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rockstor/system/pkg_mgmt.py b/src/rockstor/system/pkg_mgmt.py index da32bd216..75701cdd0 100644 --- a/src/rockstor/system/pkg_mgmt.py +++ b/src/rockstor/system/pkg_mgmt.py @@ -463,6 +463,8 @@ def update_run(subscription=None, update_all_other=False): ) ) atfo.write(pkg_refresh_cmd) + # Unset inherited VIRTUAL_ENV environmental variable before invoking rpm/zypper + atfo.write('unset VIRTUAL_ENV\n') # account for moving from dev/source to package type install: atfo.write(pkg_in_up_rockstor) # rockstor-bootstrap Requires rockstor which Requires rockstor-pre (initrock)