public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-java] Don't record dependencies while in src_test
@ 2007-01-21 21:12 Petteri Räty
  0 siblings, 0 replies; only message in thread
From: Petteri Räty @ 2007-01-21 21:12 UTC (permalink / raw
  To: gentoo-java

[-- Attachment #1: Type: text/plain, Size: 191 bytes --]

Attached is a patch that makes java-utils not record dependencies while
in src_test. With this it's not needed to remember to add --build-only
to all calls inside src_test.

Regards,
Petteri

[-- Attachment #2: dont-record-test-depends.patch --]
[-- Type: text/x-patch, Size: 949 bytes --]

Index: java-utils-2.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v
retrieving revision 1.47
diff -u -r1.47 java-utils-2.eclass
--- java-utils-2.eclass	21 Jan 2007 20:31:55 -0000	1.47
+++ java-utils-2.eclass	21 Jan 2007 21:10:55 -0000
@@ -772,7 +772,7 @@
 
 	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_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 @@
 
 	local build_only=""
 
-	if [[ "${1}" = "--build-only" ]]; then
+	if [[ "${1}" = "--build-only" || "${EBUILD_PHASE}" == "test" ]]; then
 		build_only="true"
 		shift
 	fi

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-21 21:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-21 21:12 [gentoo-java] Don't record dependencies while in src_test Petteri Räty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox