aboutsummaryrefslogtreecommitdiff
path: root/python/python3/python3.SlackBuild
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 /python/python3/python3.SlackBuild
parent20a87df3bb9c2c752991b2275ed1f2e754665353 (diff)
python/python3: More robust major version detection.
Signed-off-by: Audrius Kažukauskas <audrius@neutrino.lt>
Diffstat (limited to 'python/python3/python3.SlackBuild')
-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 908b3f9091588..b2b689ac7bb9d 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