summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2015-10-03 20:06:33 +0100
committerJames Le Cuirot <chewi@gentoo.org>2015-10-03 20:08:21 +0100
commita8a4bbca2cbe2d3f1505dab4d1df3b1bff3f937f (patch)
treeb62cc7602520859141da0381b72bf5457d24dd69 /eclass
parentnet-p2p/transmission: Depend on dev-qt/linguist-tools:5 (diff)
downloadgentoo-a8a4bbca2cbe2d3f1505dab4d1df3b1bff3f937f.tar.gz
gentoo-a8a4bbca2cbe2d3f1505dab4d1df3b1bff3f937f.tar.bz2
gentoo-a8a4bbca2cbe2d3f1505dab4d1df3b1bff3f937f.zip
java-utils-2.eclass: Fix this untested java-pkg_clean crap
Diffstat (limited to 'eclass')
-rw-r--r--eclass/java-utils-2.eclass7
1 files 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
}