summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Matthijs <axxo@gentoo.org>2004-10-24 14:34:57 +0000
committerThomas Matthijs <axxo@gentoo.org>2004-10-24 14:34:57 +0000
commitb5480a9167b38645e17072e4fabbb1141f826a2f (patch)
tree8f07fd627475ea57df11b0ac02ba069ae78548ee /eclass/java-utils.eclass
parentAdded missing depend. (Manifest recommit) (diff)
downloadgentoo-2-b5480a9167b38645e17072e4fabbb1141f826a2f.tar.gz
gentoo-2-b5480a9167b38645e17072e4fabbb1141f826a2f.tar.bz2
gentoo-2-b5480a9167b38645e17072e4fabbb1141f826a2f.zip
adjust regex in java-utils_get-vm-version for bug 68702
Diffstat (limited to 'eclass/java-utils.eclass')
-rw-r--r--eclass/java-utils.eclass2
1 files changed, 1 insertions, 1 deletions
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}
}