Gentoo Archives: gentoo-commits

From: "Ali Polatel (hawking)" <hawking@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: distutils.eclass
Date: Fri, 20 Jun 2008 18:21:45
Message-Id: E1K9lEx-0005HO-Q9@stork.gentoo.org
1 hawking 08/06/20 18:21:39
2
3 Modified: distutils.eclass
4 Log:
5 Set default PYTHON_MODNAME only if the directory site-packages/PN exists. Thanks to ColdWind.
6
7 Revision Changes Path
8 1.49 eclass/distutils.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/distutils.eclass?rev=1.49&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/distutils.eclass?rev=1.49&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/distutils.eclass?r1=1.48&r2=1.49
13
14 Index: distutils.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v
17 retrieving revision 1.48
18 retrieving revision 1.49
19 diff -u -r1.48 -r1.49
20 --- distutils.eclass 30 May 2008 10:22:35 -0000 1.48
21 +++ distutils.eclass 20 Jun 2008 18:21:39 -0000 1.49
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.48 2008/05/30 10:22:35 hawking Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.49 2008/06/20 18:21:39 hawking Exp $
27
28 # @ECLASS: distutils.eclass
29 # @MAINTAINER:
30 @@ -90,7 +90,10 @@
31 # @DESCRIPTION:
32 # Generic pyc/pyo cleanup script. This function is exported.
33 distutils_pkg_postrm() {
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 ebegin "Performing Python Module Cleanup .."
42
43
44
45 --
46 gentoo-commits@l.g.o mailing list