commit:     aea981b2e5871a0853a28e73a8e5cada5bb4054b
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Mon Oct  5 14:31:48 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Oct  5 14:32:09 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aea981b2

dev-libs/libbase58: add even better check for TRASH dir on 0.1.4-r1

Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 dev-libs/libbase58/libbase58-0.1.4-r1.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dev-libs/libbase58/libbase58-0.1.4-r1.ebuild 
b/dev-libs/libbase58/libbase58-0.1.4-r1.ebuild
index 1cf48ca77e4..375b6956313 100644
--- a/dev-libs/libbase58/libbase58-0.1.4-r1.ebuild
+++ b/dev-libs/libbase58/libbase58-0.1.4-r1.ebuild
@@ -46,7 +46,8 @@ multilib_src_configure() {
 }
 
 multilib_src_install_all() {
-       if [[ -d ${ED}/TRASH ]]; then
-               rm -r "${ED}/TRASH" || die
+       if use test; then
+               # It's hard to control this directory with 
multilib_is_native_abi && use tools, hence -f.
+               rm -rf "${ED}/TRASH" || die
        fi
 }

Reply via email to