scm: Stop trying to download src arch

This simplifies configuring extra isos to avoid failing on downloading
non-existing images.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2025-01-17 11:20:14 +01:00 committed by lsedlar
parent 46d6c48e0a
commit b3a316776e

View file

@ -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 = [