summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2007-06-19 21:08:57 +0000
committerVlastimil Babka <caster@gentoo.org>2007-06-19 21:08:57 +0000
commit6af4ec54c66785e1476fb27d94665fe2c4bcb1d4 (patch)
treea668d4664f65c1ed45ccf43a642f108ac4cbd6d8 /eclass
parentNew version. (diff)
downloadgentoo-2-6af4ec54c66785e1476fb27d94665fe2c4bcb1d4.tar.gz
gentoo-2-6af4ec54c66785e1476fb27d94665fe2c4bcb1d4.tar.bz2
gentoo-2-6af4ec54c66785e1476fb27d94665fe2c4bcb1d4.zip
Fix potential problem in eant when used with ROOT != /
Diffstat (limited to 'eclass')
-rw-r--r--eclass/java-utils-2.eclass5
1 files changed, 3 insertions, 2 deletions
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}}"