From: Mike Frysinger Date: Wed, 7 Dec 2011 16:11:17 +0000 (+0000) Subject: use -depth/-delete to simplify empty dir pruning X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=7ab0d4b579c39ac9a3ee188d9b2a2fcccc5ae1b4;p=gentoo.git use -depth/-delete to simplify empty dir pruning --- 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 @@ -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