From b3a316776e878d56c683c6558316d0c578c65992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Fri, 17 Jan 2025 11:20:14 +0100 Subject: [PATCH] scm: Stop trying to download src arch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This simplifies configuring extra isos to avoid failing on downloading non-existing images. Signed-off-by: Lubomír Sedlář --- pungi/wrappers/scm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pungi/wrappers/scm.py b/pungi/wrappers/scm.py index cfdd2907..1ed8bd33 100644 --- a/pungi/wrappers/scm.py +++ b/pungi/wrappers/scm.py @@ -358,6 +358,8 @@ class ContainerImageScmWrapper(ScmBase): raise RuntimeError("Containers can only be exported as files") def export_file(self, scm_root, scm_file, target_dir, scm_branch=None, arch=None): + if arch == "src": + return ARCHES = {"aarch64": "arm64", "x86_64": "amd64"} arch = ARCHES.get(arch, arch) cmd = [