From 76b2933dee9aa8c88fb5cd4c6e0303ee0108a66f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Wed, 12 Jun 2024 10:09:54 +0200 Subject: [PATCH] Document that "dnf makecache --timer" exits on a first failed mirror Resolves: RHEL-1342 --- ...che-with-timer-tries-only-one-mirror.patch | 38 +++++++++++++++++++ dnf.spec | 7 +++- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 0026-doc-Makecache-with-timer-tries-only-one-mirror.patch diff --git a/0026-doc-Makecache-with-timer-tries-only-one-mirror.patch b/0026-doc-Makecache-with-timer-tries-only-one-mirror.patch new file mode 100644 index 0000000..b5949ff --- /dev/null +++ b/0026-doc-Makecache-with-timer-tries-only-one-mirror.patch @@ -0,0 +1,38 @@ +From 9ceb9b3591899aaa9bb4932bc20be2fa650cbddc Mon Sep 17 00:00:00 2001 +From: Pavla Kratochvilova +Date: Mon, 18 Mar 2024 11:58:08 +0100 +Subject: [PATCH] doc: Makecache with timer tries only one mirror +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream commit: a6d82221ae32045f0f788708a52d2f2bf5c5740b +Related: https://bugzilla.redhat.com/show_bug.cgi?id=922667 +Related: https://issues.redhat.com/browse/RHEL-1342 + +Signed-off-by: Petr Písař +--- + doc/command_ref.rst | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/doc/command_ref.rst b/doc/command_ref.rst +index 42dd6e8a..36817c00 100644 +--- a/doc/command_ref.rst ++++ b/doc/command_ref.rst +@@ -973,10 +973,11 @@ Makecache Command + + ``dnf [options] makecache --timer`` + Like plain ``makecache``, but instructs DNF to be more resource-aware, +- meaning it will not do anything if running on battery power and will terminate ++ meaning it will not do anything if running on battery power, it will terminate + immediately if it's too soon after the last successful ``makecache`` run + (see :manpage:`dnf.conf(5)`, :ref:`metadata_timer_sync +- `). ++ `), and if the first mirror in a repository mirrorlist fails, ++ it will not try to synchronize the metadata from more mirrors for that repository. + + .. _mark_command-label: + +-- +2.45.2 + diff --git a/dnf.spec b/dnf.spec index a86d7dd..d2842c9 100644 --- a/dnf.spec +++ b/dnf.spec @@ -69,7 +69,7 @@ It supports RPMs, modules and comps groups & environments. Name: dnf Version: 4.14.0 -Release: 14%{?dist} +Release: 15%{?dist} Summary: %{pkg_summary} # For a breakdown of the licensing, see PACKAGE-LICENSING License: GPLv2+ @@ -100,6 +100,7 @@ Patch22: 0022-remove-oldinstallonly-when-no-old-installonly-packag.patch Patch23: 0023-Limit-queries-to-nevra-forms-when-provided-by-comman.patch Patch24: 0024-doc-Remove-provide-of-spec-definition-for-repoquery-.patch Patch25: 0025-man-Improve-upgrade-minimal-command-docs-RHEL-6417.patch +Patch26: 0026-doc-Makecache-with-timer-tries-only-one-mirror.patch BuildArch: noarch BuildRequires: cmake @@ -388,6 +389,10 @@ popd %{python3_sitelib}/%{name}/automatic/ %changelog +* Wed Jun 12 2024 Petr Pisar - 4.14.0-15 +- Document that "dnf makecache --timer" exits on a first failed mirror + (RHEL-1342) + * Mon Jun 03 2024 Petr Pisar - 4.14.0-14 - Fix dnf upgrade-minimal documentation in dnf(8) manual (RHEL-6417)