From dbb8411e7e626e1cedbc32e2343b847dc84150d6 Mon Sep 17 00:00:00 2001
From: fossdd <fossdd@pwned.life>
Date: Fri, 8 Nov 2024 23:56:40 +0100
Subject: [PATCH] pipeline: avoid duplicate key-value entries

Doesn't require to keep in sync all architectures supported by
Alpine, like ppc64le or loongarch64.
---
 mrhlpr/pipeline.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/mrhlpr/pipeline.py b/mrhlpr/pipeline.py
index 4fddd54..9be5660 100644
--- a/mrhlpr/pipeline.py
+++ b/mrhlpr/pipeline.py
@@ -10,17 +10,14 @@ def get_arch_alpine_native() -> str:
     machine = platform.machine()
 
     mapping = {
-        "aarch64": "aarch64",
         "arm64": "aarch64",
         "armv6l": "armhf",
         "armv7l": "armv7",
         "i686": "x86",
-        "riscv64": "riscv64",
-        "x86_64": "x86_64",
     }
     if machine in mapping:
         return mapping[machine]
-    raise ValueError(f"Cannot map platform.machine '{machine}' to the right Alpine Linux arch")
+    return machine
 
 
 def get_build_job(api_pipeline_jobs: dict) -> dict | None:
-- 
GitLab