From c0ff0b79ae64ec0010230d647e32181b18f78c77 Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Wed, 25 Jun 2025 22:29:31 -0700 Subject: [PATCH] utils.py: Fix get_cbl_name() for Alpine config change for real The previous fix in commit b04e3869 ("utils.py: Update get_cbl_name() for new Alpine configuration scheme") traded one error for another because I did not account for the period in the domain name. Index from the right to resolve the error more consistently. This has actually been tested locally now :^) Signed-off-by: Nathan Chancellor --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 059cbddf..0e7a1dff 100644 --- a/utils.py +++ b/utils.py @@ -81,7 +81,7 @@ def get_cbl_name(): "x86_64": "x86_64" } # The URL is https://.../stable..config - alpine_arch = base_config.split(".")[1] + alpine_arch = base_config.split(".")[-2] return alpine_to_cbl[alpine_arch] if "fedora" in base_config: fedora_to_cbl = {