summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Østergaard <kloeri@gentoo.org>2007-02-03 02:10:23 +0000
committerBryan Østergaard <kloeri@gentoo.org>2007-02-03 02:10:23 +0000
commit2eb267ec66d128a1e806f0eff6b782b5ae324762 (patch)
tree38ecf501466448accb988d9eff685cdc3db00570 /eclass/python.eclass
parentRemoving old version. (diff)
downloadgentoo-2-2eb267ec66d128a1e806f0eff6b782b5ae324762.tar.gz
gentoo-2-2eb267ec66d128a1e806f0eff6b782b5ae324762.tar.bz2
gentoo-2-2eb267ec66d128a1e806f0eff6b782b5ae324762.zip
Make sure to clean up all orphaned .py[co] files, bug 114269.
Diffstat (limited to 'eclass/python.eclass')
-rw-r--r--eclass/python.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/python.eclass b/eclass/python.eclass
index cea3cd57511d..a359c12f1d1c 100644
--- a/eclass/python.eclass
+++ b/eclass/python.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.30 2007/02/03 00:18:52 kloeri Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.31 2007/02/03 02:10:23 kloeri Exp $
#
# Author: Alastair Tse <liquidx@gentoo.org>
#
@@ -217,8 +217,8 @@ python_mod_cleanup() {
for path in ${SEARCH_PATH}; do
einfo "Cleaning orphaned Python bytecode from ${path} .."
- for obj in $(find ${path} -name *.pyc); do
- src_py="${obj%c}"
+ for obj in $(find ${path} -name *.py[co]); do
+ src_py="${obj%[co]}"
if [ ! -f "${src_py}" ]; then
einfo "Purging ${src_py}[co]"
rm -f ${src_py}[co]