summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2024-06-16 09:46:41 +0200
committerFabian Groffen <grobian@gentoo.org>2024-06-16 09:46:41 +0200
commite34da1c7f864215e4171d1597e1d21bdc2a63655 (patch)
tree3bd31eb81b3f36b760fd767b5eef207e23afdfd4
parentscripts/bootstrap-prefix: bump snapshot to an existing one (diff)
downloadprefix-e34da1c7f864215e4171d1597e1d21bdc2a63655.tar.gz
prefix-e34da1c7f864215e4171d1597e1d21bdc2a63655.tar.bz2
prefix-e34da1c7f864215e4171d1597e1d21bdc2a63655.zip
scripts/auto-bootstraps/analyse_result: fix syntax warning
this probably changed inbetween a Python release or two Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rwxr-xr-xscripts/auto-bootstraps/analyse_result.py4
-rwxr-xr-xscripts/auto-bootstraps/dobootstrap2
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