From a8a4bbca2cbe2d3f1505dab4d1df3b1bff3f937f Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Sat, 3 Oct 2015 20:06:33 +0100 Subject: [PATCH] java-utils-2.eclass: Fix this untested java-pkg_clean crap --- eclass/java-utils-2.eclass | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 } -- 2.26.2