Blame SOURCES/0023-copr-Guess-EPEL-chroots-for-CentOS-Stream-RhBug-2058.patch

9f4a6f
From 4b0001d0f13598369ec2e6a800af519e8c3a334c Mon Sep 17 00:00:00 2001
9f4a6f
From: Carl George <carl@george.computer>
9f4a6f
Date: Mon, 27 Jun 2022 23:12:05 -0500
9f4a6f
Subject: [PATCH] copr: Guess EPEL chroots for CentOS Stream (RhBug:2058471)
9f4a6f
9f4a6f
Packages built in epel-9 chroots are almost always compatible with
9f4a6f
CentOS Stream 9.  Not having the copr plugin guess this chroot is
9f4a6f
causing user friction.  Users are creating epel-9 chroots expecting them
9f4a6f
to work for both CentOS Stream 9 and RHEL 9.  When they get reports
9f4a6f
about `dnf copr enable` not working, they try to add a centos-stream-9
9f4a6f
chroot, only to discover the dependencies they need from EPEL are not
9f4a6f
available.
9f4a6f
9f4a6f
Instead of making the majority of CentOS Stream users include an
9f4a6f
explicit chroot argument, let's reserve that workaround only for the
9f4a6f
people that don't want their CentOS Stream systems picking the EPEL
9f4a6f
chroot.
9f4a6f
---
9f4a6f
 plugins/copr.py | 2 --
9f4a6f
 1 file changed, 2 deletions(-)
9f4a6f
9f4a6f
diff --git a/plugins/copr.py b/plugins/copr.py
9f4a6f
index 297210b..16946b7 100644
9f4a6f
--- a/plugins/copr.py
9f4a6f
+++ b/plugins/copr.py
9f4a6f
@@ -469,8 +469,6 @@ 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