Blame SOURCES/0018-Fix-baseurl-for-centos-stream-chroot.patch

9f4a6f
From 7f9d6809f7cb9ac48f11ef02a4e7c0cadeef9594 Mon Sep 17 00:00:00 2001
9f4a6f
From: Silvie Chlupova <sisi.chlupova@gmail.com>
9f4a6f
Date: Wed, 22 Sep 2021 22:35:21 +0200
9f4a6f
Subject: [PATCH] Fix baseurl for centos stream chroot
9f4a6f
9f4a6f
= changelog =
9f4a6f
msg: dnf copr enable on CentOS Stream should enable centos stream chroot, not epel 8
9f4a6f
type: bugfix
9f4a6f
resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1994154
9f4a6f
---
9f4a6f
 plugins/copr.py | 2 ++
9f4a6f
 1 file changed, 2 insertions(+)
9f4a6f
9f4a6f
diff --git a/plugins/copr.py b/plugins/copr.py
9f4a6f
index e1e7018..c216408 100644
9f4a6f
--- a/plugins/copr.py
9f4a6f
+++ b/plugins/copr.py
9f4a6f
@@ -457,6 +457,8 @@ Bugzilla. In case of problems, contact the owner of this repository.
9f4a6f
                 chroot = ("opensuse-tumbleweed-{}".format(distarch))
9f4a6f
             else:
9f4a6f
                 chroot = ("opensuse-leap-{0}-{1}".format(dist[1], distarch))
9f4a6f
+        elif "CentOS Stream" in dist:
9f4a6f
+            chroot = ("centos-stream-{0}-{1}".format(dist[1], distarch))
9f4a6f
         else:
9f4a6f
             chroot = ("epel-%s-x86_64" % dist[1].split(".", 1)[0])
9f4a6f
         return chroot
9f4a6f
-- 
9f4a6f
2.36.1
9f4a6f