summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Tse <liquidx@gentoo.org>2003-12-08 19:02:14 +0000
committerAlastair Tse <liquidx@gentoo.org>2003-12-08 19:02:14 +0000
commit7d6c475c98ecf8bd0f52109873e4bb68926abb80 (patch)
tree3ed91f8fe6b638a990a22af7c35e4c2552b2dcf5 /eclass/python.eclass
parentfix LICENSE after talking to author (diff)
downloadgentoo-2-7d6c475c98ecf8bd0f52109873e4bb68926abb80.tar.gz
gentoo-2-7d6c475c98ecf8bd0f52109873e4bb68926abb80.tar.bz2
gentoo-2-7d6c475c98ecf8bd0f52109873e4bb68926abb80.zip
remove empty directories when cleaning up
Diffstat (limited to 'eclass/python.eclass')
-rw-r--r--eclass/python.eclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/python.eclass b/eclass/python.eclass
index 1aa02798c172..77b955b3dabc 100644
--- a/eclass/python.eclass
+++ b/eclass/python.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.11 2003/12/08 17:39:24 liquidx Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.12 2003/12/08 19:02:14 liquidx Exp $
#
# Author: Alastair Tse <liquidx@gentoo.org>
#
@@ -187,6 +187,10 @@ python_mod_cleanup() {
rm -f ${src_py}[co]
fi
done
+ # attempt to remove directories that maybe empty
+ for dir in $(find ${path} -type d | sort -r); do
+ rmdir ${dir} 2>/dev/null
+ done
done
}