Skip to content

Commit

Permalink
Add Amazon Linux to copr chroots
Browse files Browse the repository at this point in the history
  • Loading branch information
sklarsa authored and kontura committed Sep 27, 2024
1 parent 8021fe8 commit b4e6e0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/copr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b4e6e0d

Please sign in to comment.