public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fedora-release] f45: DNF 5: set best=False, skip_if_unavailable=True
@ 2026-08-10 9:36 Evan Goode
0 siblings, 0 replies; only message in thread
From: Evan Goode @ 2026-08-10 9:36 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/fedora-release
Branch : f45
Commit : 47386a9b28959172e066f028bd0fd1443e3389ac
Author : Evan Goode <mail@evangoo.de>
Date : 2024-04-18T16:36:07+00:00
Stats : +8/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/fedora-release/c/47386a9b28959172e066f028bd0fd1443e3389ac?branch=f45
Log:
DNF 5: set best=False, skip_if_unavailable=True
Fedora should override DNF 5's upstream defaults and set best=False and
skip_if_unavailable=True. These are the status-quo settings for DNF 4 on
Fedora.
The DNF team may propose changing these downstream settings in the
future, but for now, we should keep the default behavior of DNF 5
consistent with DNF 4 as we replace DNF 4 with DNF 5 in Rawhide.
Resolves https://bugzilla.redhat.com/show_bug.cgi?id=2219153 and
https://bugzilla.redhat.com/show_bug.cgi?id=2216205.
---
diff --git a/20-fedora-defaults.conf b/20-fedora-defaults.conf
new file mode 100644
index 0000000..75ee0e7
--- /dev/null
+++ b/20-fedora-defaults.conf
@@ -0,0 +1,3 @@
+[main]
+best=False
+skip_if_unavailable=True
diff --git a/fedora-release.spec b/fedora-release.spec
index 7c60eb4..cc03abb 100644
--- a/fedora-release.spec
+++ b/fedora-release.spec
@@ -120,6 +120,7 @@ Source27: 81-desktop.preset
Source28: longer-default-shutdown-timeout.conf
Source29: org.gnome.settings-daemon.plugins.power.gschema.override
Source30: fedora-sway.conf
+Source31: 20-fedora-defaults.conf
BuildArch: noarch
@@ -1646,6 +1647,9 @@ sed -e "s#\$version#%{bug_version}#g" -e 's/<!--.*-->//;/^$/d' %{SOURCE19} > %{b
install -d %{buildroot}%{_sysconfdir}/swid/swidtags.d
ln -s --relative %{buildroot}%{_swidtagdir} %{buildroot}%{_sysconfdir}/swid/swidtags.d/fedoraproject.org
+# Install DNF 5 configuration defaults
+install -Dm0644 %{SOURCE31} -t %{buildroot}%{_prefix}/share/dnf5/libdnf.conf.d/
+
%files common
%license licenses/LICENSE licenses/Fedora-Legal-README.txt
@@ -1673,6 +1677,7 @@ ln -s --relative %{buildroot}%{_swidtagdir} %{buildroot}%{_sysconfdir}/swid/swid
%{_swidtagdir}/org.fedoraproject.Fedora-%{bug_version}.swidtag
%dir %{_sysconfdir}/swid
%{_sysconfdir}/swid/swidtags.d
+%{_prefix}/share/dnf5/libdnf.conf.d/20-fedora-defaults.conf
%if %{with basic}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-10 9:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-10 9:36 [rpms/fedora-release] f45: DNF 5: set best=False, skip_if_unavailable=True Evan Goode
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox