-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect CentOS properly instead of defaulting to epel #525
base: master
Are you sure you want to change the base?
Detect CentOS properly instead of defaulting to epel #525
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 |
@@ -471,6 +471,8 @@ def _guess_chroot(self): | |||
chroot = ("fedora-rawhide-" + distarch) | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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). |
= changelog =
msg: Fix detection of CentOS Stream
type: bugfix
resolves: #524