From: Petteri Räty Date: Sat, 3 Mar 2007 16:27:31 +0000 (+0000) Subject: Don't use which to determine where depend-java-query is installed but hardcode /usr... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e3406a95ff93ad807f7d9ba420fdc3662299ddfc;p=gentoo.git Don't use which to determine where depend-java-query is installed but hardcode /usr/bin because the which was causing endless loops for some people --- diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass index 7605aef6cd21..70dcaeda963a 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.60 2007/03/01 13:15:14 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.61 2007/03/03 16:27:31 betelgeuse Exp $ # ----------------------------------------------------------------------------- @@ -261,7 +261,9 @@ java-pkg_dojar() { # ------------------------------------------------------------------------------ depend-java-query() { - USE="${USE}" $(which depend-java-query) "${@}" + # Used to have a which call here but it caused endless loops for some people + # please tell us why if you you have any idea. Maybe bash 3.1? + USE="${USE}" /usr/bin/depend-java-query "${@}" } # ------------------------------------------------------------------------------