From b4e6e0d622a3d13bf695d6c2c501e70dcbd5dff6 Mon Sep 17 00:00:00 2001 From: Steven Sklar Date: Tue, 24 Sep 2024 10:58:58 -0400 Subject: [PATCH] Add Amazon Linux to copr chroots --- plugins/copr.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/copr.py b/plugins/copr.py index afb83243..87319a72 100644 --- a/plugins/copr.py +++ b/plugins/copr.py @@ -487,6 +487,8 @@ def _guess_chroot(self): chroot = ("opensuse-tumbleweed-{}".format(distarch)) else: chroot = ("opensuse-leap-{0}-{1}".format(dist[1], distarch)) + elif "Amazon Linux" in dist[0]: + chroot = "amazonlinux-{}-{}".format(dist[1], distarch if distarch else "x86_64") else: chroot = ("epel-{}-{}".format(dist[1].split(".", 1)[0], distarch if distarch else "x86_64")) return chroot