From 2aaeccb166fcc8cb8d1c3287d1aeb807c6a16458 Mon Sep 17 00:00:00 2001 From: Jakub Vavra Date: Fri, 1 Mar 2024 15:56:51 +0100 Subject: [PATCH] Detect CentOS properly instead of defaulting to epel = changelog = msg: Fix detection of CentOS Stream type: bugfix resolves: https://github.com/rpm-software-management/dnf-plugins-core/issues/524 --- plugins/copr.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/copr.py b/plugins/copr.py index afb83243..b388bd8e 100644 --- a/plugins/copr.py +++ b/plugins/copr.py @@ -471,6 +471,8 @@ def _guess_chroot(self): chroot = ("fedora-rawhide-" + distarch) else: chroot = ("fedora-{0}-{1}".format(dist[1], distarch)) + elif "CentOS Stream" in dist: + chroot = ("centos-stream-{}-{}".format(dist[1].split(".", 1)[0], distarch if distarch else "x86_64")) elif "Mageia" in dist: # Get distribution architecture (Mageia does not use $basearch) distarch = rpm.expandMacro("%{distro_arch}")