diff options
author | Alastair Tse <liquidx@gentoo.org> | 2003-12-08 19:02:14 +0000 |
---|---|---|
committer | Alastair Tse <liquidx@gentoo.org> | 2003-12-08 19:02:14 +0000 |
commit | 2fd9e46434275e7162ab3889cb034ecb95328f2b (patch) | |
tree | 4d829f6683cd14fab2a68c32a7c554d61bd96280 /eclass/python.eclass | |
parent | fix LICENSE after talking to author (diff) | |
download | historical-2fd9e46434275e7162ab3889cb034ecb95328f2b.tar.gz historical-2fd9e46434275e7162ab3889cb034ecb95328f2b.tar.bz2 historical-2fd9e46434275e7162ab3889cb034ecb95328f2b.zip |
remove empty directories when cleaning up
Diffstat (limited to 'eclass/python.eclass')
-rw-r--r-- | eclass/python.eclass | 6 |
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 } |