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

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