From: Zac Medico Date: Mon, 5 May 2008 21:50:08 +0000 (-0000) Subject: Use find -path -or -name to match basenames of files in INSTALL_MASK X-Git-Tag: v2.2_pre7~77 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=93a371d22f5c368e6a4ad2bcfca84bfd26ee0bdb;p=portage.git Use find -path -or -name to match basenames of files in INSTALL_MASK as suggested by solar in bug #219286, comment #8. svn path=/main/trunk/; revision=10212 --- diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 1d7af4043..59fa51e70 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -413,7 +413,8 @@ install_mask() { rm -Rf "${root}"/${no_inst} >&/dev/null # we also need to handle globs (*.a, *.h, etc) - find "${root}" -path "${no_inst}" -exec rm -fR {} \; >/dev/null + find "${root}" \( -path "${no_inst}" -or -name "${no_inst}" \) \ + -exec rm -fR {} \; >/dev/null done # set everything back the way we found it set +o noglob