copr icon indicating copy to clipboard operation
copr copied to clipboard

Could we advice the `dnf5` what are the available repository fallbacks?

Open praiskup opened this issue 1 year ago • 2 comments

At this point in time, dnf5 copr enable implements the fallback mechanism itself: https://github.com/rpm-software-management/dnf5/blob/117bc3e552147925ac469179d4c8f79f06a1eaca/dnf5-plugins/copr_plugin/helpers.cpp#L8-L15

This is much better than with dnf4 variant, where we had to decide server-side (copr-frontend), and we didn't have good enough information about the client machine (is that Alma? is that CentOS Stream? RHEL? What user prefers?).

I'm curious if we could provide some "hint" like info in the /api_3/rpmrepo/<owner>/<project>/ call, saying that some chroots are good enough fallbacks for other chroots (like that epel-10 is a good fallback for rhel+epel-10 and vice versa). Maybe let the Copr owner decide it.

praiskup avatar Oct 10 '24 06:10 praiskup

Relates to #3469

praiskup avatar Oct 10 '24 06:10 praiskup

Sounds good. Maybe we can even interactively prompt the user when enabling, to specify what alternative he wants?

Maybe let the Copr owner decide it.

IMHO probably not

FrostyX avatar Oct 11 '24 21:10 FrostyX