summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAli Polatel <hawking@gentoo.org>2008-05-29 22:03:59 +0000
committerAli Polatel <hawking@gentoo.org>2008-05-29 22:03:59 +0000
commitbe7915a32e1ea0dd9eb5d7fe5e6df39aafb1c915 (patch)
treedeff6ea73e6a0c26aa9ec57e0ea34c74d339f9bd /eclass
parentversion bump (diff)
downloadgentoo-2-be7915a32e1ea0dd9eb5d7fe5e6df39aafb1c915.tar.gz
gentoo-2-be7915a32e1ea0dd9eb5d7fe5e6df39aafb1c915.tar.bz2
gentoo-2-be7915a32e1ea0dd9eb5d7fe5e6df39aafb1c915.zip
Fix last commit. Thanks to Remy Blank.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/python.eclass14
1 files changed, 6 insertions, 8 deletions
diff --git a/eclass/python.eclass b/eclass/python.eclass
index 5101c1b68764..ac06b53b8d5b 100644
--- a/eclass/python.eclass
+++ b/eclass/python.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/python.eclass,v 1.39 2008/05/29 21:19:19 hawking Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.40 2008/05/29 22:03:59 hawking Exp $
# @ECLASS: python.eclass
# @MAINTAINER:
@@ -178,7 +178,7 @@ python_mod_compile() {
# Example:
# python_mod_optimize /usr/share/codegen
python_mod_optimize() {
- local mydirs myfiles myroot myopts path
+ local mydirs myfiles myroot myopts
# Check if phase is pkg_postinst()
[[ ${EBUILD_PHASE} != postinst ]] &&\
@@ -202,12 +202,10 @@ python_mod_optimize() {
ewarn "${FUNCNAME}: Ignoring compile option $1"
;;
*)
- for path in $@; do
- [ ! -e "${myroot}/${path}" ] && ewarn "${myroot}/${path} doesn't exist!"
- [ -d "${myroot}/${path#/}" ] && mydirs="${mydirs} ${myroot}/${path#/}"
- # Files are passed to python_mod_compile which is ROOT-aware
- [ -f "${myroot}/${path}" ] && myfiles="${myfiles} ${path}"
- done
+ [ ! -e "${myroot}/${1}" ] && ewarn "${myroot}/${1} doesn't exist!"
+ [ -d "${myroot}/${1#/}" ] && mydirs="${mydirs} ${myroot}/${1#/}"
+ # Files are passed to python_mod_compile which is ROOT-aware
+ [ -f "${myroot}/${1}" ] && myfiles="${myfiles} ${1}"
;;
esac
shift