summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAudrius Kažukauskas <audrius@neutrino.lt>2015-01-15 22:19:06 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-01-18 09:08:57 +0700
commitd9ff997b5fee7739d9a85a183dd477c4063830c9 (patch)
treee81624579fddf0a09e31da3acdc7c78c12eb83b5
parent20a87df3bb9c2c752991b2275ed1f2e754665353 (diff)
downloadslackbuilds-d9ff997b5fee7739d9a85a183dd477c4063830c9.tar.gz
python/python3: More robust major version detection.
Signed-off-by: Audrius Kažukauskas <audrius@neutrino.lt>
-rw-r--r--python/python3/python3.SlackBuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/python3/python3.SlackBuild b/python/python3/python3.SlackBuild
index 908b3f9091..b2b689ac7b 100644
--- a/python/python3/python3.SlackBuild
+++ b/python/python3/python3.SlackBuild
@@ -52,7 +52,7 @@ else
LIBDIRSUFFIX=""
fi
-PYVER=${VERSION::3}
+PYVER=$(cut -d. -f1,2 <<< "$VERSION")
set -eu