diff options
author | James Le Cuirot <chewi@gentoo.org> | 2015-10-03 20:06:33 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2015-10-03 20:08:21 +0100 |
commit | a8a4bbca2cbe2d3f1505dab4d1df3b1bff3f937f (patch) | |
tree | b62cc7602520859141da0381b72bf5457d24dd69 /eclass | |
parent | net-p2p/transmission: Depend on dev-qt/linguist-tools:5 (diff) | |
download | gentoo-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.eclass | 7 |
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 } |