Don't use which to determine where depend-java-query is installed but hardcode /usr...
authorPetteri Räty <betelgeuse@gentoo.org>
Sat, 3 Mar 2007 16:27:31 +0000 (16:27 +0000)
committerPetteri Räty <betelgeuse@gentoo.org>
Sat, 3 Mar 2007 16:27:31 +0000 (16:27 +0000)
eclass/java-utils-2.eclass

index 7605aef6cd21d57b9f94253c2aabf950800849b0..70dcaeda963aac52e40d553c472fc7ce7b147943 100644 (file)
@@ -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 "${@}"
 }
 
 # ------------------------------------------------------------------------------