aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Frankenberger <simon@fraho.eu>2019-06-03 20:06:12 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2019-06-05 15:49:49 +0000
commit33c5fb54d728be0c5a3afa3ee4a014a76488360d (patch)
treec0a8774ab15535e3d4f7a18b7a473b50397aa2a6
parentdbc32a6c7771ef26009ddd2151d9e67c0ee3ab01 (diff)
downloadaports-33c5fb54d728be0c5a3afa3ee4a014a76488360d.tar.gz
aports-33c5fb54d728be0c5a3afa3ee4a014a76488360d.tar.bz2
aports-33c5fb54d728be0c5a3afa3ee4a014a76488360d.tar.xz
main/java-common: Fix sorting function for newer java version (10+)
-rw-r--r--main/java-common/APKBUILD2
-rw-r--r--main/java-common/java-common.trigger2
2 files changed, 2 insertions, 2 deletions
diff --git a/main/java-common/APKBUILD b/main/java-common/APKBUILD
index 3fd811b2fd..204b62ed3d 100644
--- a/main/java-common/APKBUILD
+++ b/main/java-common/APKBUILD
@@ -1,7 +1,7 @@
# Contributor: Timo Teras <timo.teras@iki.fi>
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=java-common
-pkgver=0.1
+pkgver=0.2
pkgrel=0
pkgdesc="Java common (updates java links)"
url="https://git.alpinelinux.org/aports.git"
diff --git a/main/java-common/java-common.trigger b/main/java-common/java-common.trigger
index 6d0613d48e..d46bcbe8ba 100644
--- a/main/java-common/java-common.trigger
+++ b/main/java-common/java-common.trigger
@@ -6,7 +6,7 @@ if [ -x /usr/lib/jvm/forced-jvm ]; then
fi
cd /usr/lib/jvm
-LATEST=`ls -d java-* | sort -r | head -1`
+LATEST=`ls -d java-* | sort -Vr | head -1`
if [ "$LATEST" ]; then
ln -sfn $LATEST default-jvm
fi