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