fix(meta/python/detect): probe /opt writability, not /opt/venvs existence

Virgin pkgmgr containers ship without /opt/venvs, so the prior
'-d /opt/venvs && -w /opt/venvs' check fell through to ${HOME}/.venvs,
breaking the test-install-{make,pkgmgr} workflows that hardcode
'source /opt/venvs/infinito/bin/activate'. Probe the parent instead —
venv.sh mkdir -p's the leaf later.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 4.7 committed 2026-05-21 00:56:37 +02:00
1 parent 9d94f18129
commit 165fb9cc89
1 file changed
+1 -1
+1 -1
View File
@@ -8,7 +8,7 @@ VENV_NAME=infinito
if [[ -n "${VIRTUAL_ENV:-}" ]]; then
VENV_BASE="$(dirname "${VIRTUAL_ENV}")"
elif [[ -d /opt/venvs && -w /opt/venvs ]]; then
elif [[ -d /opt && -w /opt ]]; then
VENV_BASE=/opt/venvs
else
VENV_BASE="${HOME}/.venvs"