summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2012-08-16 07:46:15 +0000
committerPatrick Lauer <patrick@gentoo.org>2012-08-16 07:46:15 +0000
commitd1f237765641a960fe6f84ca4b7edfff841e8f0f (patch)
tree858d20f50b985b57f911fd2e915c421fb51e03e5 /eclass/python.eclass
parentwhitespace (diff)
downloadgentoo-2-d1f237765641a960fe6f84ca4b7edfff841e8f0f.tar.gz
gentoo-2-d1f237765641a960fe6f84ca4b7edfff841e8f0f.tar.bz2
gentoo-2-d1f237765641a960fe6f84ca4b7edfff841e8f0f.zip
Fixing noisy output on unmerge #423741
Diffstat (limited to 'eclass/python.eclass')
-rw-r--r--eclass/python.eclass8
1 files changed, 2 insertions, 6 deletions
diff --git a/eclass/python.eclass b/eclass/python.eclass
index 3dbb3e15c566..73cc8dda1a38 100644
--- a/eclass/python.eclass
+++ b/eclass/python.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.155 2012/06/09 10:01:19 marienz Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.156 2012/08/16 07:46:15 patrick Exp $
# @ECLASS: python.eclass
# @MAINTAINER:
@@ -2768,7 +2768,6 @@ _python_clean_compiled_modules() {
else
[[ -f "${py_file}" ]] && continue
fi
- echo "${_BLUE}<<< ${compiled_file%[co]}[co]${_NORMAL}"
rm -f "${compiled_file%[co]}"[co]
elif [[ "${compiled_file}" == *\$py.class ]]; then
if [[ "${dir}" == "__pycache__" ]]; then
@@ -2783,7 +2782,6 @@ _python_clean_compiled_modules() {
else
[[ -f "${py_file}" ]] && continue
fi
- echo "${_BLUE}<<< ${compiled_file}${_NORMAL}"
rm -f "${compiled_file}"
else
die "${FUNCNAME}(): Unrecognized file type: '${compiled_file}'"
@@ -2792,9 +2790,7 @@ _python_clean_compiled_modules() {
# Delete empty parent directories.
dir="${compiled_file%/*}"
while [[ "${dir}" != "${root}" ]]; do
- if rmdir "${dir}" 2> /dev/null; then
- echo "${_CYAN}<<< ${dir}${_NORMAL}"
- else
+ if ! rmdir "${dir}" 2> /dev/null; then
break
fi
dir="${dir%/*}"