commit: 4736f92567dc16e8a6b3a4d8db2895448f6cafc2
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 9 15:19:25 2020 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed Dec 9 15:19:25 2020 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=4736f925
scripts/auto-bootstraps/dobootstrap: sanitize linux version a bit
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
scripts/auto-bootstraps/dobootstrap | 3 +++
1 file changed, 3 insertions(+)
diff --git a/scripts/auto-bootstraps/dobootstrap
b/scripts/auto-bootstraps/dobootstrap
index 5970ecb540..9ef644be2c 100755
--- a/scripts/auto-bootstraps/dobootstrap
+++ b/scripts/auto-bootstraps/dobootstrap
@@ -140,6 +140,9 @@ do_prepare() {
# UNIX vendors
local dist=$(lsb_release -si)
local rel=$(lsb_release -sr)
+ while [[ ${rel} == *.*.* ]] ; do
+ rel=${rel%.*}
+ done
local platform=pc
# this is the logic used in bootstrap-prefix.sh
[[ ${PREFIX_DISABLE_RAP} != "yes" ]] && platform=rap