From e3406a95ff93ad807f7d9ba420fdc3662299ddfc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petteri=20R=C3=A4ty?= Date: Sat, 3 Mar 2007 16:27:31 +0000 Subject: [PATCH] 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 --- eclass/java-utils-2.eclass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 "${@}" } # ------------------------------------------------------------------------------ -- 2.26.2