From 80453aaa939edbdfa2e8bf08a46481f3d5d5d072 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sat, 15 Jul 2006 13:55:06 +0000 Subject: Bash 2.59 compatibility change. Necessary for Gentoo for Mac OS X. Permission to commit from nichoj. See bug #139899 --- eclass/java-vm-2.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eclass') diff --git a/eclass/java-vm-2.eclass b/eclass/java-vm-2.eclass index 71a14c65ba61..9332f778b4fa 100644 --- a/eclass/java-vm-2.eclass +++ b/eclass/java-vm-2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.4 2006/06/30 15:00:07 nichoj Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.5 2006/07/15 13:55:06 grobian Exp $ # # Author: Karl Trygve Kalleberg @@ -40,7 +40,7 @@ java-vm-2_pkg_postinst() { einfo "No valid generation-1 system-vm set, setting to ${P}" java-config-1 --set-system-vm=${P} # dirty check to see if we are upgrading current generation-1 system vm - elif [[ ${systemvm1} =~ "^${VMHANDLE}" ]]; then + elif [[ x${systemvm1} = x${VMHANDLE} ]]; then einfo "Upgrading generation-1 system-vm... updating its env file" java-config-1 --set-system-vm=${P} fi -- cgit v1.2.3-65-gdbad