From: | "Ali Polatel (hawking)" <hawking@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in eclass: distutils.eclass |
Date: | Tue, 24 Jun 2008 13:40:57 |
Message-Id: | E1KB8lO-0004br-UF@stork.gentoo.org |
1 | hawking 08/06/24 13:40:50 |
2 | |
3 | Modified: distutils.eclass |
4 | Log: |
5 | Set default PYTHON_MODNAME only if the directory site-packages/PN exists for distutils_pkg_postinst. |
6 | |
7 | Revision Changes Path |
8 | 1.50 eclass/distutils.eclass |
9 | |
10 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/distutils.eclass?rev=1.50&view=markup |
11 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/distutils.eclass?rev=1.50&content-type=text/plain |
12 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/distutils.eclass?r1=1.49&r2=1.50 |
13 | |
14 | Index: distutils.eclass |
15 | =================================================================== |
16 | RCS file: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v |
17 | retrieving revision 1.49 |
18 | retrieving revision 1.50 |
19 | diff -u -r1.49 -r1.50 |
20 | --- distutils.eclass 20 Jun 2008 18:21:39 -0000 1.49 |
21 | +++ distutils.eclass 24 Jun 2008 13:40:50 -0000 1.50 |
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/distutils.eclass,v 1.49 2008/06/20 18:21:39 hawking Exp $ |
26 | +# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.50 2008/06/24 13:40:50 hawking Exp $ |
27 | |
28 | # @ECLASS: distutils.eclass |
29 | # @MAINTAINER: |
30 | @@ -115,7 +115,10 @@ |
31 | # This is a generic optimization, you should override it if your package |
32 | # installs things in another directory. This function is exported |
33 | distutils_pkg_postinst() { |
34 | - PYTHON_MODNAME=${PYTHON_MODNAME:-${PN}} |
35 | + if [[ -z "${PYTHON_MODNAME}" &&\ |
36 | + -d ${ROOT}/usr/$(get_libdir)/python*/site-packages/${PN} ]]; then |
37 | + PYTHON_MODNAME=${PN} |
38 | + fi |
39 | |
40 | if has_version ">=dev-lang/python-2.3"; then |
41 | python_version |
42 | |
43 | |
44 | |
45 | -- |
46 | gentoo-commits@l.g.o mailing list |