1 |
hawking 08/05/29 22:03:59 |
2 |
|
3 |
Modified: python.eclass |
4 |
Log: |
5 |
Fix last commit. Thanks to Remy Blank. |
6 |
|
7 |
Revision Changes Path |
8 |
1.40 eclass/python.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/python.eclass?rev=1.40&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/python.eclass?rev=1.40&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/python.eclass?r1=1.39&r2=1.40 |
13 |
|
14 |
Index: python.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/python.eclass,v |
17 |
retrieving revision 1.39 |
18 |
retrieving revision 1.40 |
19 |
diff -u -r1.39 -r1.40 |
20 |
--- python.eclass 29 May 2008 21:19:19 -0000 1.39 |
21 |
+++ python.eclass 29 May 2008 22:03:59 -0000 1.40 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2008 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.39 2008/05/29 21:19:19 hawking Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.40 2008/05/29 22:03:59 hawking Exp $ |
27 |
|
28 |
# @ECLASS: python.eclass |
29 |
# @MAINTAINER: |
30 |
@@ -178,7 +178,7 @@ |
31 |
# Example: |
32 |
# python_mod_optimize /usr/share/codegen |
33 |
python_mod_optimize() { |
34 |
- local mydirs myfiles myroot myopts path |
35 |
+ local mydirs myfiles myroot myopts |
36 |
|
37 |
# Check if phase is pkg_postinst() |
38 |
[[ ${EBUILD_PHASE} != postinst ]] &&\ |
39 |
@@ -202,12 +202,10 @@ |
40 |
ewarn "${FUNCNAME}: Ignoring compile option $1" |
41 |
;; |
42 |
*) |
43 |
- for path in $@; do |
44 |
- [ ! -e "${myroot}/${path}" ] && ewarn "${myroot}/${path} doesn't exist!" |
45 |
- [ -d "${myroot}/${path#/}" ] && mydirs="${mydirs} ${myroot}/${path#/}" |
46 |
- # Files are passed to python_mod_compile which is ROOT-aware |
47 |
- [ -f "${myroot}/${path}" ] && myfiles="${myfiles} ${path}" |
48 |
- done |
49 |
+ [ ! -e "${myroot}/${1}" ] && ewarn "${myroot}/${1} doesn't exist!" |
50 |
+ [ -d "${myroot}/${1#/}" ] && mydirs="${mydirs} ${myroot}/${1#/}" |
51 |
+ # Files are passed to python_mod_compile which is ROOT-aware |
52 |
+ [ -f "${myroot}/${1}" ] && myfiles="${myfiles} ${1}" |
53 |
;; |
54 |
esac |
55 |
shift |
56 |
|
57 |
|
58 |
|
59 |
-- |
60 |
gentoo-commits@l.g.o mailing list |