summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2010-03-12 18:27:01 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2010-03-12 18:27:01 +0000
commit1c4bf32322ab627bbb51acf95af7e0bd35740318 (patch)
tree7b7aae618e798259cf7f016cd9d24c9da112d9f8 /eclass/python.eclass
parentVersion bump. (diff)
downloadgentoo-2-1c4bf32322ab627bbb51acf95af7e0bd35740318.tar.gz
gentoo-2-1c4bf32322ab627bbb51acf95af7e0bd35740318.tar.bz2
gentoo-2-1c4bf32322ab627bbb51acf95af7e0bd35740318.zip
Using terminal colors to modify eerror output is not allowed. Switch to using einfo for deprecated functions so that they don't get logged by default for users.
Diffstat (limited to 'eclass/python.eclass')
-rw-r--r--eclass/python.eclass32
1 files changed, 13 insertions, 19 deletions
diff --git a/eclass/python.eclass b/eclass/python.eclass
index 22646aa54396..a88c297311f2 100644
--- a/eclass/python.eclass
+++ b/eclass/python.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.92 2010/03/04 17:42:11 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.93 2010/03/12 18:27:01 betelgeuse Exp $
# @ECLASS: python.eclass
# @MAINTAINER:
@@ -2025,13 +2025,11 @@ python_version() {
die "${FUNCNAME}() cannot be used in this EAPI"
fi
- _python_set_color_variables
-
if [[ "${FUNCNAME[1]}" != "distutils_python_version" ]]; then
- eerror
- eerror "${_RED}Deprecation Warning: ${FUNCNAME}() is deprecated and will be banned on 2010-07-01.${_NORMAL}"
- eerror "${_RED}Use PYTHON() instead of python variable. Use python_get_*() instead of PYVER* variables.${_NORMAL}"
- eerror
+ einfo
+ einfo "Deprecation Warning: ${FUNCNAME}() is deprecated and will be banned on 2010-07-01."
+ einfo "Use PYTHON() instead of python variable. Use python_get_*() instead of PYVER* variables."
+ einfo
fi
[[ -n "${PYVER}" ]] && return 0
@@ -2065,12 +2063,10 @@ python_mod_exists() {
die "${FUNCNAME}() cannot be used in this EAPI"
fi
- _python_set_color_variables
-
- eerror
- eerror "${_RED}Deprecation Warning: ${FUNCNAME}() is deprecated and will be banned on 2010-07-01.${_NORMAL}"
- eerror "${_RED}Use USE dependencies and/or has_version() instead of ${FUNCNAME}().${_NORMAL}"
- eerror
+ einfo
+ einfo "Deprecation Warning: ${FUNCNAME}() is deprecated and will be banned on 2010-07-01."
+ einfo "Use USE dependencies and/or has_version() instead of ${FUNCNAME}()."
+ einfo
if [[ "$#" -ne 1 ]]; then
die "${FUNCNAME}() requires 1 argument"
@@ -2088,13 +2084,11 @@ python_tkinter_exists() {
die "${FUNCNAME}() cannot be used in this EAPI"
fi
- _python_set_color_variables
-
if [[ "${FUNCNAME[1]}" != "distutils_python_tkinter" ]]; then
- eerror
- eerror "${_RED}Deprecation Warning: ${FUNCNAME}() is deprecated and will be banned on 2010-07-01.${_NORMAL}"
- eerror "${_RED}Use PYTHON_USE_WITH=\"xml\" and python_pkg_setup() instead of ${FUNCNAME}().${_NORMAL}"
- eerror
+ einfo
+ einfo "Deprecation Warning: ${FUNCNAME}() is deprecated and will be banned on 2010-07-01."
+ einfo "Use PYTHON_USE_WITH=\"xml\" and python_pkg_setup() instead of ${FUNCNAME}()."
+ einfo
fi
if ! "$(PYTHON ${PYTHON_ABI})" -c "from sys import version_info