From a55df1dc8d612dff27db5c442285afad7cd3c1ac Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Sun, 21 Mar 2010 11:57:11 +0000 Subject: Create idle symlink when target script exists. --- python.eselect | 7 +++++-- 1 file 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 -- cgit v1.2.3-65-gdbad