From 60e082a6e170cfb36496c4be7a737002a7f844f3 Mon Sep 17 00:00:00 2001 From: Zeglius <33781398+Zeglius@users.noreply.github.com> Date: Thu, 31 Oct 2024 17:35:26 +0100 Subject: [PATCH] fix: Override copr plugin config to use fedora chroot by default --- .../usr/share/dnf/plugins/copr.vendor.conf | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 sys_files/usr/share/dnf/plugins/copr.vendor.conf diff --git a/sys_files/usr/share/dnf/plugins/copr.vendor.conf b/sys_files/usr/share/dnf/plugins/copr.vendor.conf new file mode 100644 index 00000000..935502d3 --- /dev/null +++ b/sys_files/usr/share/dnf/plugins/copr.vendor.conf @@ -0,0 +1,20 @@ +# This override is to handle the default behavior of dnf5 using ID at /etc/os-release +# to select which chroot gets used to fetch the copr repo. +# +# An example of the behavior displayed without this override in Bazzite: +# sudo dnf5 copr enable msmafra/hyprland +# https://copr.fedorainfracloud.org/api_3/rpmrepo/msmafra/hyprland/bazzite-41/ 100% | 726.0 B/s | 457.0 B | 00m01s +# Chroot not found in the given Copr project (bazzite-41-x86_64). You can choose one of the available chroots explicitly: +# fedora-40-aarch64 +# fedora-40-x86_64 +# fedora-41-aarch64 +# fedora-41-x86_64 +# fedora-rawhide-aarch64 +# fedora-rawhide-x86_64 +# +# See: +# https://github.com/rpm-software-management/dnf5/blob/01d4df824ff4a94ae1fc288f81923d02ba71173a/dnf5-plugins/copr_plugin/copr_config.cpp#L79-L81 +# https://github.com/rpm-software-management/dnf5/blob/01d4df824ff4a94ae1fc288f81923d02ba71173a/dnf5-plugins/copr_plugin/copr_repo.cpp#L146 + +[main] +distribution = fedora