summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-03-21 11:57:11 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-03-21 11:57:11 +0000
commita55df1dc8d612dff27db5c442285afad7cd3c1ac (patch)
tree0ef8fe03b291bb282d0688220ae4282e12273322
parentSet GENTOO_PYTHON_PROCESS_NAME environmental variable (bug #286424). (diff)
downloadeselect-python-a55df1dc8d612dff27db5c442285afad7cd3c1ac.tar.gz
eselect-python-a55df1dc8d612dff27db5c442285afad7cd3c1ac.tar.bz2
eselect-python-a55df1dc8d612dff27db5c442285afad7cd3c1ac.zip
Create idle symlink when target script exists.
-rw-r--r--python.eselect7
1 files changed, 5 insertions, 2 deletions
diff --git a/python.eselect b/python.eselect
index 3ebfbfb..1ea575d 100644
--- a/python.eselect
+++ b/python.eselect
@@ -1,4 +1,4 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id: $
@@ -119,7 +119,10 @@ set_scripts_and_symlinks() {
set_python "${target}"
set_python_config "${target/python/python-config-}"
ln -nfs "${target/python/pydoc}" pydoc
- ln -nfs "${target/python/idle}" idle
+ # idle is optionally installed
+ if [[ -f "${target/python/idle}" ]]; then
+ ln -nfs "${target/python/idle}" idle
+ fi
# 2to3 for >=2.6
if [[ -f "${target/python/2to3-}" ]]; then
ln -nfs "${target/python/2to3-}" 2to3