summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2011-07-04 10:50:28 +0000
committerDirkjan Ochtman <djc@gentoo.org>2011-07-04 10:50:28 +0000
commitcd6c1e60bae7a8676704fb6b6ea18eb009beca5d (patch)
tree7fcb8faca5be558fbffab702838e50b0130e254b /eclass
parentDelete python_version(), python_mod_exists(), python_tkinter_exists() and (diff)
downloadgentoo-2-cd6c1e60bae7a8676704fb6b6ea18eb009beca5d.tar.gz
gentoo-2-cd6c1e60bae7a8676704fb6b6ea18eb009beca5d.tar.bz2
gentoo-2-cd6c1e60bae7a8676704fb6b6ea18eb009beca5d.zip
Print deprecation warnings in deprecated parts of python_mod_optimize() and
python_mod_cleanup(). (Patch by Arfrever. Backported from python overlay.)
Diffstat (limited to 'eclass')
-rw-r--r--eclass/python.eclass26
1 files changed, 13 insertions, 13 deletions
diff --git a/eclass/python.eclass b/eclass/python.eclass
index 3977efdd3226..92ca7694183b 100644
--- a/eclass/python.eclass
+++ b/eclass/python.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.111 2011/07/04 10:48:01 djc Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.112 2011/07/04 10:50:28 djc Exp $
# @ECLASS: python.eclass
# @MAINTAINER:
@@ -2652,12 +2652,12 @@ python_mod_optimize() {
fi
else
# Deprecated part of python_mod_optimize()
- # ewarn
- # ewarn "Deprecation Warning: Usage of ${FUNCNAME}() in packages not supporting installation"
- # ewarn "for multiple Python ABIs in EAPI <=2 is deprecated and will be disallowed on 2011-06-01."
- # ewarn "Use EAPI >=3 and call ${FUNCNAME}() with paths having appropriate syntax."
- # ewarn "The ebuild needs to be fixed. Please report a bug, if it has not been already reported."
- # ewarn
+ ewarn
+ ewarn "Deprecation Warning: Usage of ${FUNCNAME}() in packages not supporting installation"
+ ewarn "for multiple Python ABIs in EAPI <=2 is deprecated and will be disallowed on 2011-08-01."
+ ewarn "Use EAPI >=3 and call ${FUNCNAME}() with paths having appropriate syntax."
+ ewarn "The ebuild needs to be fixed. Please report a bug, if it has not been already reported."
+ ewarn
local myroot mydirs=() myfiles=() myopts=() return_code="0"
@@ -2816,12 +2816,12 @@ python_mod_cleanup() {
done
else
# Deprecated part of python_mod_cleanup()
- # ewarn
- # ewarn "Deprecation Warning: Usage of ${FUNCNAME}() in packages not supporting installation"
- # ewarn "for multiple Python ABIs in EAPI <=2 is deprecated and will be disallowed on 2011-06-01."
- # ewarn "Use EAPI >=3 and call ${FUNCNAME}() with paths having appropriate syntax."
- # ewarn "The ebuild needs to be fixed. Please report a bug, if it has not been already reported."
- # ewarn
+ ewarn
+ ewarn "Deprecation Warning: Usage of ${FUNCNAME}() in packages not supporting installation"
+ ewarn "for multiple Python ABIs in EAPI <=2 is deprecated and will be disallowed on 2011-08-01."
+ ewarn "Use EAPI >=3 and call ${FUNCNAME}() with paths having appropriate syntax."
+ ewarn "The ebuild needs to be fixed. Please report a bug, if it has not been already reported."
+ ewarn
search_paths=("${@#/}")
search_paths=("${search_paths[@]/#/${root}/}")