From b5480a9167b38645e17072e4fabbb1141f826a2f Mon Sep 17 00:00:00 2001 From: Thomas Matthijs Date: Sun, 24 Oct 2004 14:34:57 +0000 Subject: adjust regex in java-utils_get-vm-version for bug 68702 --- eclass/java-utils.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eclass/java-utils.eclass') diff --git a/eclass/java-utils.eclass b/eclass/java-utils.eclass index 71a4b7fbd48f..d0797b3828a5 100644 --- a/eclass/java-utils.eclass +++ b/eclass/java-utils.eclass @@ -57,7 +57,7 @@ java-utils_get-vm-vendor() { } java-utils_get-vm-version() { - local version=$(java-config -f | sed -r "s/^[a-zA-Z-]+//") + local version=$(java-config -f | sed -e "s/.*-\([0-9].*\)/\1/") echo ${version} } -- cgit v1.2.3-65-gdbad