mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2026-09-10 07:16:18 -04:00
Create backup of original virtualenv within $(pyenv root)/versions when --upgrade
This commit is contained in:
parent
008a9820bb
commit
e2e69b3b38
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue