mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-08 11:33:55 -05:00
Create backup of original virtualenv within $(pyenv root)/versions when --upgrade
This commit is contained in:
@@ -317,8 +317,8 @@ unset USE_PYVENV
|
||||
detect_venv
|
||||
|
||||
SEED="$(date "+%Y%m%d%H%M%S").$$"
|
||||
VIRTUALENV_ORIG="${TMP}/pyenv-virtualenv.${SEED}"
|
||||
REQUIREMENTS="${TMP}/pyenv-virtualenv.${SEED}.txt"
|
||||
VIRTUALENV_ORIG="${VIRTUALENV_PATH}.${SEED}"
|
||||
REQUIREMENTS="${TMP}/requirements.${SEED}.txt"
|
||||
|
||||
# Upgrade existing virtualenv
|
||||
if [ -n "$UPGRADE" ]; then
|
||||
|
||||
Reference in New Issue
Block a user