diff --git a/0011-versionlock-Document-that-local-packages-are-not-aff.patch b/0011-versionlock-Document-that-local-packages-are-not-aff.patch new file mode 100644 index 0000000..a134b60 --- /dev/null +++ b/0011-versionlock-Document-that-local-packages-are-not-aff.patch @@ -0,0 +1,36 @@ +From e6abcde5fcffdc6bd60c8183894040abd9b193bc Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Mon, 1 Dec 2025 17:40:46 +0100 +Subject: [PATCH] versionlock: Document that local packages are not affected + +Upstream commit: fa966d83e340c5df12942656da0f8c5c66eac556 + +Local packages are added to a sack after the versionlock plugin logic +runs, so the plugin cannot exclude them from an installation. + +This patch documents this deficiency. + +Resolve: #585 +Resolve: https://issues.redhat.com/browse/RHEL-94014 +Resolve: https://issues.redhat.com/browse/RHEL-94828 +--- + doc/versionlock.rst | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/doc/versionlock.rst b/doc/versionlock.rst +index 1ac7196..c4a931c 100644 +--- a/doc/versionlock.rst ++++ b/doc/versionlock.rst +@@ -47,6 +47,9 @@ excludes a package that matches the version exactly. + Note the versionlock plugin does not apply any excludes in non-transactional + operations like `repoquery`, `list`, `info`, etc. + ++Note that the versionlock plugin only applies to in-repository packages. ++Packages passed on the DNF command line as local files won't be affected. ++ + -------- + Synopsis + -------- +-- +2.52.0 + diff --git a/dnf-plugins-core.spec b/dnf-plugins-core.spec index 8b33167..4d55ddd 100644 --- a/dnf-plugins-core.spec +++ b/dnf-plugins-core.spec @@ -42,7 +42,7 @@ Name: dnf-plugins-core Version: 4.7.0 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Core Plugins for DNF License: GPL-2.0-or-later URL: https://github.com/rpm-software-management/dnf-plugins-core @@ -57,6 +57,7 @@ Patch7: 0007-needs-restarting-Add-exclude-services-to-man-page.patch Patch8: 0008-needs-restarting-Get-boot-time-from-systemd-UnitsLoa.patch Patch9: 0009-doc-needs-restarting-uses-UnitsLoadStartTimestamp-bo.patch Patch10: 0010-reposync-Avoid-multiple-downloads-of-duplicate-packa.patch +Patch11: 0011-versionlock-Document-that-local-packages-are-not-aff.patch BuildArch: noarch BuildRequires: cmake @@ -888,6 +889,9 @@ ln -sf %{yum_utils_subpackage_name}.1.gz %{buildroot}%{_mandir}/man1/repotrack.1 %endif %changelog +* Wed Dec 03 2025 Petr Pisar - 4.7.0-10 +- Document that local packages are not affected by versionlock (RHEL-94828) + * Thu Mar 20 2025 Marek Blaha - 4.7.0-9 - reposync: Avoid multiple downloads of duplicate packages (RHEL-82849)