Check that app-arch/zip is in DEPEND in java-pkg_dosrc.
authorPetteri Räty <betelgeuse@gentoo.org>
Sat, 17 Mar 2007 13:26:12 +0000 (13:26 +0000)
committerPetteri Räty <betelgeuse@gentoo.org>
Sat, 17 Mar 2007 13:26:12 +0000 (13:26 +0000)
eclass/java-utils-2.eclass

index 564f597e22afbacae46f7c3c61cd3ef5173c7cb8..f09c93e5ab5ccda19b8cd66962d7b20f71d1b697 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.65 2007/03/06 12:14:49 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.66 2007/03/17 13:26:12 betelgeuse Exp $
 
 
 # -----------------------------------------------------------------------------
@@ -586,14 +586,22 @@ java-pkg_dosrc() {
        debug-print-function ${FUNCNAME} $*
 
        [ ${#} -lt 1 ] && die "At least one argument needed"
-       if ! hasq source ${IUSE}; then
-               echo "Java QA Notice: ${FUNCNAME} called without source in IUSE"
-       fi
 
        java-pkg_check-phase install
 
        [[ ${#} -lt 1 ]] && die "At least one argument needed"
 
+       if ! [[ ${DEPEND} = *app-arch/zip* ]]; then
+               local msg="${FUNCNAME} called without app-arch/zip in DEPEND"
+               if is-java-strict; then
+                       eerror "${msg}"
+                       die "${msg}"
+               else
+                       echo "${msg}"
+                       echo "Please report this to http://bugs.gentoo.org."
+               fi
+       fi
+
        java-pkg_init_paths_
 
        local zip_name="${PN}-src.zip"