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

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