diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-08-04 20:48:14 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-08-04 20:48:14 +0000 |
commit | f05a2c78f223304e4117c273269eec86067a6f28 (patch) | |
tree | 02d0fe7a454764ec0160b714dbf6b304617766ea | |
parent | Tag eselect-python-20090804. (diff) | |
parent | Make /usr/bin/python a symlink to python-wrapper. (diff) | |
download | eselect-python-20090804.tar.gz eselect-python-20090804.tar.bz2 eselect-python-20090804.zip |
Tag eselect-python-20090804.eselect-python-20090804
-rw-r--r-- | python.eselect | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python.eselect b/python.eselect index 766d816..6031113 100644 --- a/python.eselect +++ b/python.eselect @@ -25,7 +25,8 @@ find_targets() { } set_python() { - local program="${INTERPRETER_PATH}python" target="${1}" + local symlink="${INTERPRETER_PATH}python" target="${1}" + ln -s python-wrapper "${symlink}" echo "${target}" > "${ENV_D_PATH}/python/config" } @@ -45,7 +46,7 @@ EOF # Try to remove python and python.1 symlinks remove_symlinks() { local symlink symlink_target symlink_target_found - rm -f "${INTERPRETER_PATH}"{idle,pydoc,python-config} &>/dev/null && \ + rm -f "${INTERPRETER_PATH}"{idle,pydoc,python,python-config} &>/dev/null && \ rm -f "${MAN_PATH}"python.1{,.gz,.bz2,.lzma,.xz} &>/dev/null for symlink in "${INTERPRETER_PATH}python"?; do [[ ! -L "${symlink}" ]] && continue |