From: James Le Cuirot Date: Sat, 3 Oct 2015 19:06:33 +0000 (+0100) Subject: java-utils-2.eclass: Fix this untested java-pkg_clean crap X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a8a4bbca2cbe2d3f1505dab4d1df3b1bff3f937f;p=gentoo.git java-utils-2.eclass: Fix this untested java-pkg_clean crap --- diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass index 6c28c46f3798..e0984f33f633 100644 --- a/eclass/java-utils-2.eclass +++ b/eclass/java-utils-2.eclass @@ -2827,9 +2827,10 @@ is-java-strict() { # @FUNCTION: java-pkg_clean # @DESCRIPTION: -# java package cleaner function, will remove all *.class and *.jar files -# removing any bundled dependencies +# Java package cleaner function. This will remove all *.class and *.jar +# files, removing any bundled dependencies. java-pkg_clean() { - [[ -n "${JAVA_PKG_NO_CLEAN}" ]] && + if [[ -z "${JAVA_PKG_NO_CLEAN}" ]]; then find "${@}" '(' -name '*.class' -o -name '*.jar' ')' -type f -delete -print || die + fi }