From 3fde427e55bde56ef870bfdec21cbe97b5e995b6 Mon Sep 17 00:00:00 2001 From: shirely16 Date: Sat, 22 Jan 2022 10:41:15 +0800 Subject: [PATCH] Reposync does not stop downloading packages --- ...-fix-error-when-downloading-packages.patch | 31 +++++++++++++++++++ dnf-plugins-core.spec | 7 ++++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 backport-fix-error-when-downloading-packages.patch diff --git a/backport-fix-error-when-downloading-packages.patch b/backport-fix-error-when-downloading-packages.patch new file mode 100644 index 0000000..d15b458 --- /dev/null +++ b/backport-fix-error-when-downloading-packages.patch @@ -0,0 +1,31 @@ +From bdfb8ed33b54683057364df729d45e782d19e708 Mon Sep 17 00:00:00 2001 +From: Marek Blaha +Date: Wed, 6 Oct 2021 13:40:55 +0200 +Subject: [PATCH] reposync: Use fail_fast=False when downloading packages + (RhBug:2009894) + += changelog = +msg: Reposync does not stop downloading packages on the first error +type: bugfix +resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2009894 + +Conflict:NA +Reference:https://github.com/rpm-software-management/dnf-plugins-core/commit/bdfb8ed33b54683057364df729d45e782d19e708 +--- + dnf-plugins-core.spec | 2 +- + plugins/reposync.py | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/plugins/reposync.py b/plugins/reposync.py +index 66c76a77..0ff936f8 100644 +--- a/plugins/reposync.py ++++ b/plugins/reposync.py +@@ -303,7 +303,7 @@ def download_packages(self, pkglist): + progress, 0) + payloads = [RPMPayloadLocation(pkg, progress, self.pkg_download_path(pkg)) + for pkg in pkglist] +- base._download_remote_payloads(payloads, drpm, progress, None) ++ base._download_remote_payloads(payloads, drpm, progress, None, False) + + def print_urls(self, pkglist): + for pkg in pkglist: diff --git a/dnf-plugins-core.spec b/dnf-plugins-core.spec index 86f157d..c69dff6 100644 --- a/dnf-plugins-core.spec +++ b/dnf-plugins-core.spec @@ -7,12 +7,14 @@ Name: dnf-plugins-core Version: 4.0.24 -Release: 2 +Release: 3 Summary: Core Plugins for DNF License: GPLv2+ URL: https://github.com/rpm-software-management/dnf-plugins-core Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz +Patch6000: backport-fix-error-when-downloading-packages.patch + BuildArch: noarch BuildRequires: cmake gettext python3-sphinx Requires: python3-%{name} = %{version}-%{release} @@ -323,6 +325,9 @@ popd %{_mandir}/man8/dnf-local.* %changelog +* Sat Jan 22 2022 hanhui - 4.0.24-3 +- DESC:Reposync does not stop downloading packages + * Fri Jan 01 2022 wangkerong - 4.0.24-2 - DESC:delete buildrequires of python-nose -- Gitee