java-utils-2.eclass: Fix this untested java-pkg_clean crap
authorJames Le Cuirot <chewi@gentoo.org>
Sat, 3 Oct 2015 19:06:33 +0000 (20:06 +0100)
committerJames Le Cuirot <chewi@gentoo.org>
Sat, 3 Oct 2015 19:08:21 +0000 (20:08 +0100)
eclass/java-utils-2.eclass

index 6c28c46f37988f7bf0e05e7f901db6432cf25884..e0984f33f633377e9fb44813cdfeb79b80a4259c 100644 (file)
@@ -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
 }