summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-12-07 16:11:17 +0000
committerMike Frysinger <vapier@gentoo.org>2011-12-07 16:11:17 +0000
commit7ab0d4b579c39ac9a3ee188d9b2a2fcccc5ae1b4 (patch)
tree281c74b9dfa3f12455537c151ef3426a0606b8b5 /eclass
parentVersion bump. Remove unrequired keepdir of /var/run/polkit-1 wrt #387903 by "... (diff)
downloadhistorical-7ab0d4b579c39ac9a3ee188d9b2a2fcccc5ae1b4.tar.gz
historical-7ab0d4b579c39ac9a3ee188d9b2a2fcccc5ae1b4.tar.bz2
historical-7ab0d4b579c39ac9a3ee188d9b2a2fcccc5ae1b4.zip
use -depth/-delete to simplify empty dir pruning
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass6
1 files changed, 2 insertions, 4 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 8bad1345b297..391bc3863c93 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.506 2011/12/07 00:29:38 dirtyepic Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.507 2011/12/07 16:11:17 vapier Exp $
#
# Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
@@ -1516,9 +1516,7 @@ toolchain_src_install() {
|| prepman "${DATAPATH}"
fi
# prune empty dirs left behind
- for x in 1 2 3 4 ; do
- find "${D}" -type d -exec rmdir "{}" \; >& /dev/null
- done
+ find "${D}" -depth -type d -delete 2>/dev/null
# install testsuite results
if use test; then