diff options
author | Ali Polatel <hawking@gentoo.org> | 2008-05-29 15:24:51 +0000 |
---|---|---|
committer | Ali Polatel <hawking@gentoo.org> | 2008-05-29 15:24:51 +0000 |
commit | d05b8ef6465179ea210c2e0feb2f01286f216480 (patch) | |
tree | 5473746f493b456077f75c8c2cc6e61e9142e003 /eclass/distutils.eclass | |
parent | Make python_mod_optimize ROOT aware. (diff) | |
download | gentoo-2-d05b8ef6465179ea210c2e0feb2f01286f216480.tar.gz gentoo-2-d05b8ef6465179ea210c2e0feb2f01286f216480.tar.bz2 gentoo-2-d05b8ef6465179ea210c2e0feb2f01286f216480.zip |
python_mod_optimize is ROOT aware.
Diffstat (limited to 'eclass/distutils.eclass')
-rw-r--r-- | eclass/distutils.eclass | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/eclass/distutils.eclass b/eclass/distutils.eclass index 99a2120024af..49c41db9deb8 100644 --- a/eclass/distutils.eclass +++ b/eclass/distutils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.46 2008/02/28 20:20:32 dev-zero Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.47 2008/05/29 15:24:51 hawking Exp $ # @ECLASS: distutils.eclass # @MAINTAINER: @@ -114,15 +114,11 @@ distutils_pkg_postrm() { distutils_pkg_postinst() { PYTHON_MODNAME=${PYTHON_MODNAME:-${PN}} - # strip trailing slash - myroot="${ROOT%/}" - if has_version ">=dev-lang/python-2.3"; then python_version for pymod in ${PYTHON_MODNAME}; do - if [ -d "${myroot}/usr/$(get_libdir)/python${PYVER}/site-packages/${pymod}" ]; then - python_mod_optimize ${myroot}/usr/$(get_libdir)/python${PYVER}/site-packages/${pymod} - fi + python_mod_optimize \ + /usr/$(get_libdir)/python${PYVER}/site-packages/${pymod} done fi } |