diff options
author | Vlastimil Babka <caster@gentoo.org> | 2007-06-19 21:08:57 +0000 |
---|---|---|
committer | Vlastimil Babka <caster@gentoo.org> | 2007-06-19 21:08:57 +0000 |
commit | 262f9582f86d12ba36ef93e10866ea34084344fb (patch) | |
tree | 63e68e7dc6dcf5c29f50a187caf551d19abb2cba /eclass | |
parent | New version. (diff) | |
download | historical-262f9582f86d12ba36ef93e10866ea34084344fb.tar.gz historical-262f9582f86d12ba36ef93e10866ea34084344fb.tar.bz2 historical-262f9582f86d12ba36ef93e10866ea34084344fb.zip |
Fix potential problem in eant when used with ROOT != /
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/java-utils-2.eclass | 5 |
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}}" |