Detect CentOS properly instead of defaulting to epel#525
Detect CentOS properly instead of defaulting to epel#525jakub-vavra-cz wants to merge 2 commits intorpm-software-management:masterfrom
Conversation
|
Thank you for the PR! The authors wanted to use For the other cases, the |
= changelog = msg: Fix detection of CentOS Stream type: bugfix resolves: rpm-software-management#524
ed56c71 to
3439358
Compare
|
Just for the record, The |
| else: | ||
| chroot = ("fedora-{0}-{1}".format(dist[1], distarch)) | ||
| elif "CentOS Stream" in dist: | ||
| chroot = ("centos-stream-{}-{}".format(dist[1].split(".", 1)[0], distarch if distarch else "x86_64")) |
There was a problem hiding this comment.
Thank you for the update.
This is not something I'd love to make decisions on. I'd suggest you: ask the CentOS Stream community.
Just note that the CentOS Stream build chroots have a lower chance to even exist in the project:

And then, from my observation only, it is a relatively known fact that epel-* is the default decision DNF copr plugin on the Enterprise Linux-based distros, so if anyone has to provide some "stable and supported content" in Copr for EL, they provide epel- chroots. The centos-stream-* or centos-stream+epel-* chroots in Fedora Copr are typically used just for CI testing.
|
Hello @praiskup , We are running the same automation on fedora, centos and rhel so we want to just run "dnf copr enable PROJECT" and we expect that it will work properly pulling the right one. I wanted to avoid writing my own _guess_chroot in ci automation. According to Your plot there is a significant number of centos-stream-9-x86_64 and centos-stream-8-x86_64. |
|
Just two more interesting queries, number of EL-based chroots (or "projects") currently in Fedora Copr (excluding the temporary projects): More Here including the temporary projects: The temporary projects are usually created for CI purposes (e.g. Packit && pull-requests). |
|
In #586 I've taken an approach which I think is smarter: it guesses based on the available chroots. I was not aware of the |
= changelog =
msg: Fix detection of CentOS Stream
type: bugfix
resolves: #524