Don't record dependencies when the ebuild phase is test, all those dependencies shoul...
authorPetteri Räty <betelgeuse@gentoo.org>
Sun, 21 Jan 2007 21:12:52 +0000 (21:12 +0000)
committerPetteri Räty <betelgeuse@gentoo.org>
Sun, 21 Jan 2007 21:12:52 +0000 (21:12 +0000)
eclass/java-utils-2.eclass

index d17a2a2029531ee77bf440eadbdf46636f49e0c5..77442e68c7aaf4f4ab033ae3b41de8405aa55b26 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.47 2007/01/21 20:31:55 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.48 2007/01/21 21:12:52 betelgeuse Exp $
 
 
 # -----------------------------------------------------------------------------
@@ -772,7 +772,7 @@ java-pkg_jar-from() {
 
        local build_only=""
 
-       if [[ "${1}" = "--build-only" ]]; then
+       if [[ "${1}" = "--build-only" || "${EBUILD_PHASE}" == "test" ]]; then
                build_only="true"
                shift
        fi
@@ -857,7 +857,7 @@ java-pkg_jarfrom() {
 java-pkg_getjars() {
        debug-print-function ${FUNCNAME} $*
 
-       if [[ "${1}" = "--build-only" ]]; then
+       if [[ "${1}" = "--build-only" || "${EBUILD_PHASE}" == "test" ]]; then
                local build_only="true"
                shift
        fi
@@ -917,7 +917,7 @@ java-pkg_getjar() {
 
        local build_only=""
 
-       if [[ "${1}" = "--build-only" ]]; then
+       if [[ "${1}" = "--build-only" || "${EBUILD_PHASE}" == "test" ]]; then
                build_only="true"
                shift
        fi