1 |
caster 11/10/30 11:06:38 |
2 |
|
3 |
Modified: java-vm-2.eclass |
4 |
Log: |
5 |
Remove false alarms on system-vm removal due to GENTOO_VM set for icedtea build. |
6 |
|
7 |
Revision Changes Path |
8 |
1.36 eclass/java-vm-2.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/java-vm-2.eclass?rev=1.36&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/java-vm-2.eclass?rev=1.36&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/java-vm-2.eclass?r1=1.35&r2=1.36 |
13 |
|
14 |
Index: java-vm-2.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v |
17 |
retrieving revision 1.35 |
18 |
retrieving revision 1.36 |
19 |
diff -u -r1.35 -r1.36 |
20 |
--- java-vm-2.eclass 29 Oct 2011 14:36:34 -0000 1.35 |
21 |
+++ java-vm-2.eclass 30 Oct 2011 11:06:38 -0000 1.36 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2004 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.35 2011/10/29 14:36:34 caster Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.36 2011/10/30 11:06:38 caster Exp $ |
27 |
|
28 |
# ----------------------------------------------------------------------------- |
29 |
# @eclass-begin |
30 |
@@ -96,7 +96,7 @@ |
31 |
|
32 |
java-vm-2_pkg_prerm() { |
33 |
# Although REPLACED_BY_VERSION is EAPI=4, we shouldn't need to check EAPI for this use case |
34 |
- if [[ "$(java-config -f 2>/dev/null)" == "${VMHANDLE}" && -z "${REPLACED_BY_VERSION}" ]]; then |
35 |
+ if [[ "$(GENTOO_VM="" java-config -f 2>/dev/null)" == "${VMHANDLE}" && -z "${REPLACED_BY_VERSION}" ]]; then |
36 |
ewarn "It appears you are removing your system-vm!" |
37 |
ewarn "Please run java-config -L to list available VMs," |
38 |
ewarn "then use java-config -S to set a new system-vm!" |