diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2009-03-31 19:19:20 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2009-03-31 19:19:20 +0000 |
commit | 467f1a568da0ac254c3896bff51e7acf2c392d02 (patch) | |
tree | 75a3dc594cd3a8e6019cdbb09bba02cb8f6f3b7a /eclass/java-utils-2.eclass | |
parent | Remove old. (diff) | |
download | historical-467f1a568da0ac254c3896bff51e7acf2c392d02.tar.gz historical-467f1a568da0ac254c3896bff51e7acf2c392d02.tar.bz2 historical-467f1a568da0ac254c3896bff51e7acf2c392d02.zip |
Simply java-pkg_func-exists using suggestions by ciaranm and dberkholz on gentoo-dev.
Diffstat (limited to 'eclass/java-utils-2.eclass')
-rw-r--r-- | eclass/java-utils-2.eclass | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass index 2072a539ae03..f2f5e09e9991 100644 --- a/eclass/java-utils-2.eclass +++ b/eclass/java-utils-2.eclass @@ -6,7 +6,7 @@ # # Licensed under the GNU General Public License, v2 # -# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.125 2009/03/27 20:58:57 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.126 2009/03/31 19:19:20 betelgeuse Exp $ # ----------------------------------------------------------------------------- # @eclass-begin @@ -367,6 +367,7 @@ java-pkg_regjar() { eerror "has * in it. If you want it to glob in" eerror '${D} add ${D} to the argument.' fi + debug-print "${jar} or ${D}${jar} not found" die "${jar} does not exist" fi done @@ -2449,11 +2450,7 @@ java-pkg_expand_dir_() { # @return 1 - function is undeclared # ------------------------------------------------------------------------------ java-pkg_func-exists() { - if [[ -n "$(declare -f ${1})" ]]; then - return 0 - else - return 1 - fi + declare -F ${1} > /dev/null } # ------------------------------------------------------------------------------ |