diff options
author | 2008-10-25 14:39:45 +0000 | |
---|---|---|
committer | 2008-10-25 14:39:45 +0000 | |
commit | 8e4ebea5e5d9ba5057ce89926b3b13b6c097f886 (patch) | |
tree | 10fa49d1e9ef09f8ac30a64ef07a7c594ddd31ce | |
parent | Handle 2to3 symlink if it exists. (diff) | |
download | eselect-python-8e4ebea5e5d9ba5057ce89926b3b13b6c097f886.tar.gz eselect-python-8e4ebea5e5d9ba5057ce89926b3b13b6c097f886.tar.bz2 eselect-python-8e4ebea5e5d9ba5057ce89926b3b13b6c097f886.zip |
Make sure ROOT doesn't have two slashes at the end, fixing bug 240149.
-rw-r--r-- | python.eselect | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python.eselect b/python.eselect index 16e64dd..ca655d2 100644 --- a/python.eselect +++ b/python.eselect @@ -7,8 +7,8 @@ MAINTAINER="hawking@gentoo.org" SVN_DATE='$Date$' VERSION=$(svn_date_to_version "${SVN_DATE}" ) -INTERPRETER_PATH="${ROOT}/usr/bin/" -MAN_PATH="${ROOT}/usr/share/man/man1/" +INTERPRETER_PATH="${ROOT%/}/usr/bin/" +MAN_PATH="${ROOT%/}/usr/share/man/man1/" # find a list of python versions find_targets() { @@ -165,7 +165,7 @@ do_update() { shift done - if [[ -L "${ROOT}/usr/bin/python" ]]; then + if [[ -L "${ROOT%/}/usr/bin/python" ]]; then ${if_unset} && return fi |