From 262f9582f86d12ba36ef93e10866ea34084344fb Mon Sep 17 00:00:00 2001 From: Vlastimil Babka Date: Tue, 19 Jun 2007 21:08:57 +0000 Subject: Fix potential problem in eant when used with ROOT != / --- eclass/java-utils-2.eclass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'eclass') diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass index 0e50ceb0d965..0a2b750334c5 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.89 2007/06/07 12:17:54 caster Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.90 2007/06/19 21:08:57 caster Exp $ # ----------------------------------------------------------------------------- # @eclass-begin @@ -1836,7 +1836,8 @@ eant() { fi done - if has_version ">=dev-java/ant-core-1.7.0"; then + # we use this in src_* so we run ant from / + if ROOT=/ has_version ">=dev-java/ant-core-1.7.0"; then # default ANT_TASKS to WANT_ANT_TASKS, if ANT_TASKS is not set explicitly ANT_TASKS="${ANT_TASKS:-${WANT_ANT_TASKS}}" -- cgit v1.2.3-65-gdbad