summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2007-04-18 08:52:00 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2007-04-18 08:52:00 +0000
commitf0ebfb74ada6f22b061c639c7e26c04fc1912756 (patch)
treed28c1831c0d0291235f33e561bfd6debec12bc1c /eclass
parentAdd dev-java/ant-core to RDEPEND for bug #174981. ant-core should not be --bu... (diff)
downloadgentoo-2-f0ebfb74ada6f22b061c639c7e26c04fc1912756.tar.gz
gentoo-2-f0ebfb74ada6f22b061c639c7e26c04fc1912756.tar.bz2
gentoo-2-f0ebfb74ada6f22b061c639c7e26c04fc1912756.zip
Silence dep checker warning when inside a sub shell.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/java-utils-2.eclass10
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass
index 15fa59cfcfa8..8afa7906a038 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.70 2007/04/17 09:16:22 ali_bush Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.71 2007/04/18 08:52:00 betelgeuse Exp $
# -----------------------------------------------------------------------------
@@ -2353,7 +2353,7 @@ java-pkg_verify-classes() {
java-pkg_ensure-dep() {
debug-print-function ${FUNCNAME} $*
- local build_only="${1}"
+ local build_only="${1}"
local target_pkg="${2}"
local dev_error=""
@@ -2365,7 +2365,7 @@ java-pkg_ensure-dep() {
dev_error="${dev_error} declared in DEPEND."
if is-java-strict; then
die "${dev_error}"
- else
+ elif [[ ${BASH_SUBSHELL} = 0 ]]; then
eerror "${dev_error}"
einfo "Because you have this package installed the package will"
einfo "build without problems, but please report this to"
@@ -2377,8 +2377,8 @@ java-pkg_ensure-dep() {
dev_error="The ebuild is attempting to use ${target_pkg},"
dev_error="${dev_error} without specifying --build-only, that is not declared in RDEPEND."
if is-java-strict; then
- die "${error}"
- else
+ die "${dev_error}"
+ elif [[ ${BASH_SUBSHELL} = 0 ]]; then
eerror "${dev_error}"
einfo "Because you have this package installed the package will"
einfo "build without problems, but please report this to"