commit:     a8a4bbca2cbe2d3f1505dab4d1df3b1bff3f937f
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  3 19:06:33 2015 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Oct  3 19:08:21 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8a4bbca

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 6c28c46..e0984f3 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
 }

Reply via email to