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

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