public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fedora-release] rawhide: dnf5: disable vendor change by default
@ 2026-08-10 13:03 Jaroslav Rohel
0 siblings, 0 replies; only message in thread
From: Jaroslav Rohel @ 2026-08-10 13:03 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/fedora-release
Branch : rawhide
Commit : 241c45dac896cbd39bb52a4b64e1de317ab02640
Author : Jaroslav Rohel <jrohel@redhat.com>
Date : 2026-06-24T09:10:31+02:00
Stats : +15/-0 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/fedora-release/c/241c45dac896cbd39bb52a4b64e1de317ab02640?branch=rawhide
Log:
dnf5: disable vendor change by default
Set allow_vendor_change=False in 20-fedora-defaults.conf to prevent
DNF5 from switching a package's vendor during updates or installs.
Add allow-cmdline.conf to /usr/share/dnf5/vendors.d/ to allow vendor
change as an exception when a package is specified directly by path
or URL on the command line (cmdline_repo).
https://fedoraproject.org/wiki/Changes/DisableVendorChangeByDefault
---
diff --git a/20-fedora-defaults.conf b/20-fedora-defaults.conf
index 876df94..b89e455 100644
--- a/20-fedora-defaults.conf
+++ b/20-fedora-defaults.conf
@@ -1,4 +1,5 @@
[main]
+allow_vendor_change=False
best=False
pkg_gpgcheck=True
skip_if_unavailable=True
diff --git a/allow-cmdline.conf b/allow-cmdline.conf
new file mode 100644
index 0000000..b71b869
--- /dev/null
+++ b/allow-cmdline.conf
@@ -0,0 +1,11 @@
+# Allow vendor change for packages specified directly by path or URL (e.g.
+# "dnf install /path/to/package.rpm" or
+# "dnf install https://example.com/package.rpm"). This is an exception to
+# the global allow_vendor_change=False set in 20-fedora-defaults.conf.
+
+version = '1.1'
+
+[[incoming_packages]]
+filters = [
+ { filter = 'cmdline_repo', value = 'true' }
+]
diff --git a/fedora-release.spec b/fedora-release.spec
index ea1bd5d..8e3bebc 100644
--- a/fedora-release.spec
+++ b/fedora-release.spec
@@ -57,6 +57,7 @@ Source33: plasma-mobile.conf
Source34: 80-kde-mobile.preset
Source35: fedora-miraclewm.conf
Source36: fedora-cosmic.conf
+Source37: allow-cmdline.conf
BuildArch: noarch
@@ -1908,6 +1909,7 @@ ln -s --relative %{buildroot}%{_swidtagdir} %{buildroot}%{_sysconfdir}/swid/swid
# Install DNF 5 configuration defaults
install -Dm0644 %{SOURCE31} -t %{buildroot}%{_prefix}/share/dnf5/libdnf.conf.d/
+install -Dm0644 %{SOURCE37} -t %{buildroot}%{_prefix}/share/dnf5/vendors.d/
%files common
@@ -1930,6 +1932,7 @@ install -Dm0644 %{SOURCE31} -t %{buildroot}%{_prefix}/share/dnf5/libdnf.conf.d/
%dir %{_sysconfdir}/swid
%{_sysconfdir}/swid/swidtags.d
%{_prefix}/share/dnf5/libdnf.conf.d/20-fedora-defaults.conf
+%{_prefix}/share/dnf5/vendors.d/allow-cmdline.conf
%files
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-10 13:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-10 13:03 [rpms/fedora-release] rawhide: dnf5: disable vendor change by default Jaroslav Rohel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox