public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jaroslav Rohel <jrohel@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/fedora-release] f45: dnf5: disable vendor change by default
Date: Fri, 04 Sep 2026 01:45:10 GMT	[thread overview]
Message-ID: <178848631040.1.1338752847470692812.rpms-fedora-release-008c99e25637@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/fedora-release
            Branch : f45
            Commit : 008c99e25637befcf2e98a3ea0386dc51f83653c
            Author : Jaroslav Rohel <jrohel@redhat.com>
            Date   : 2026-09-03T21:44:20-04:00
            Stats  : +15/-0 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/fedora-release/c/008c99e25637befcf2e98a3ea0386dc51f83653c?branch=f45

            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
(cherry picked from commit 241c45dac896cbd39bb52a4b64e1de317ab02640)

---
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 e9adf6f..f050503 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

                 reply	other threads:[~2026-09-04  1:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178848631040.1.1338752847470692812.rpms-fedora-release-008c99e25637@fedoraproject.org \
    --to=jrohel@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox