Skip to content

Commit

Permalink
copr: Guess EPEL chroots for CentOS Stream (RhBug:2058471)
Browse files Browse the repository at this point in the history
Packages built in epel-9 chroots are almost always compatible with
CentOS Stream 9.  Not having the copr plugin guess this chroot is
causing user friction.  Users are creating epel-9 chroots expecting them
to work for both CentOS Stream 9 and RHEL 9.  When they get reports
about `dnf copr enable` not working, they try to add a centos-stream-9
chroot, only to discover the dependencies they need from EPEL are not
available.

Instead of making the majority of CentOS Stream users include an
explicit chroot argument, let's reserve that workaround only for the
people that don't want their CentOS Stream systems picking the EPEL
chroot.
  • Loading branch information
carlwgeorge authored and Conan-Kudo committed Jun 28, 2022
1 parent 038bd5c commit 313470b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions plugins/copr.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,6 @@ def _guess_chroot(self):
chroot = ("opensuse-tumbleweed-{}".format(distarch))
else:
chroot = ("opensuse-leap-{0}-{1}".format(dist[1], distarch))
elif "CentOS Stream" in dist:
chroot = ("centos-stream-{0}-{1}".format(dist[1], distarch))
else:
chroot = ("epel-%s-x86_64" % dist[1].split(".", 1)[0])
return chroot
Expand Down

0 comments on commit 313470b

Please sign in to comment.