commit: e34da1c7f864215e4171d1597e1d21bdc2a63655
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 16 07:46:41 2024 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Jun 16 07:46:41 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=e34da1c7
scripts/auto-bootstraps/analyse_result: fix syntax warning
this probably changed inbetween a Python release or two
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
scripts/auto-bootstraps/analyse_result.py | 4 ++--
scripts/auto-bootstraps/dobootstrap | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/auto-bootstraps/analyse_result.py
b/scripts/auto-bootstraps/analyse_result.py
index 5314d66593..428a110f2f 100755
--- a/scripts/auto-bootstraps/analyse_result.py
+++ b/scripts/auto-bootstraps/analyse_result.py
@@ -218,10 +218,10 @@ def archSort(l, r):
Sort by os, vendor, cpu
"""
lcpu, lvendor, los = l.split('-', 2)
- losname = re.split('\d', los, 1)[0]
+ losname = re.split('[0-9]', los, 1)[0]
losver = los.split(losname, 1)[1]
rcpu, rvendor, ros = r.split('-', 2)
- rosname = re.split('\d', ros, 1)[0]
+ rosname = re.split('[0-9]', ros, 1)[0]
rosver = ros.split(rosname, 1)[1]
if losname > rosname:
diff --git a/scripts/auto-bootstraps/dobootstrap
b/scripts/auto-bootstraps/dobootstrap
index cafd4df1fa..682a7927d9 100755
--- a/scripts/auto-bootstraps/dobootstrap
+++ b/scripts/auto-bootstraps/dobootstrap
@@ -88,7 +88,7 @@ do_prepare() {
chost=sparc-${chost#*-}
fi
;;
- SParcv9-*|sparc64-*)
+ sparcv9-*|sparc64-*)
if [[ ${bitw} == 32 ]] ; then
chost=sparc-${chost#*-}
else