Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
5736ecda6f
!47 [sync] PR-44: dnf-plugins-core:download plugin:respect install_weak_deps option value
From: @openeuler-sync-bot 
Reviewed-by: @anonymous_z 
Signed-off-by: @anonymous_z
2023-06-28 03:30:54 +00:00
chenhaxing
8b2be36ac9 dnf-plugins-core:download plugin:respect install_weak_deps option value
(cherry picked from commit c1a8c3b1052e99ff3eeb62bb369815e02fcc6667)
2023-06-28 09:52:34 +08:00
openeuler-ci-bot
d5f768d2f4
!42 modify incorrect contents in spec file
From: @chen-haixing-hw 
Reviewed-by: @anonymous_z 
Signed-off-by: @anonymous_z
2022-12-01 13:02:57 +00:00
chenhaixing
079086ec4f modify incorrect contents in spec file 2022-12-01 20:35:49 +08:00
openeuler-ci-bot
afa7a17ab8
!40 upgrade dnf-plugins-core version to 4.3.1
From: @chen-haixing-hw 
Reviewed-by: @yanan-rock 
Signed-off-by: @yanan-rock
2022-11-09 15:07:52 +00:00
chenhaixing
e5b4cd9e68 upgrade dnf-plugins-core version to 4.3.1
Signed-off-by: chenhaixing <chenhaixing@huawei.com>
2022-11-09 19:17:07 +08:00
openeuler-ci-bot
abf1338519
!39 /sync openEuler-22.03-LTS-Next bugfix:add configfile post-transaction-actions.d
From: @chen-haixing-hw 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
2022-08-23 06:42:19 +00:00
chenhaixing
93473a6fd9 add configfile post-transaction-actions.d 2022-08-22 15:23:21 +08:00
openeuler-ci-bot
5519dc1883
!35 [sync] PR-34: 【轻量级 PR】:Remove redundant BuildRequires
From: @openeuler-sync-bot 
Reviewed-by: @anonymous_z 
Signed-off-by: @anonymous_z
2022-07-21 01:58:19 +00:00
kerongw
f8b54a0437 Remove redundant BuildRequires
(cherry picked from commit b00d237aaadc47549ed7f9cce4548237a21afbfa)
2022-05-26 21:18:31 +08:00
5 changed files with 82 additions and 41 deletions

View File

@ -0,0 +1,31 @@
From 95ff945cd92a8c8299874fe8007951f0d158113a Mon Sep 17 00:00:00 2001
From: Michal Gawlik <michal@gawlik.dev>
Date: Fri, 16 Sep 2022 13:09:18 +0200
Subject: [PATCH] download plugin: respect install_weak_deps option value
Do not download weak deps when install_weak_deps is set to False.
= changelog =
msg: download: skip downloading weak deps when install_weak_deps=False
type: bug
Reference:https://github.com/rpm-software-management/dnf-plugins-core/commit/95ff945cd92a8c8299874fe8007951f0d158113a
Conflict:NA
---
plugins/download.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/download.py b/plugins/download.py
index 92a6df4a..d8ce4bec 100644
--- a/plugins/download.py
+++ b/plugins/download.py
@@ -253,7 +253,7 @@ def _get_packages_with_deps(self, pkg_specs, source=False):
for pkg in pkgs:
goal = hawkey.Goal(self.base.sack)
goal.install(pkg)
- rc = goal.run()
+ rc = goal.run(ignore_weak_deps=(not self.base.conf.install_weak_deps))
if rc:
pkg_set.update(goal.list_installs())
pkg_set.update(goal.list_upgrades())
--

View File

@ -1,31 +0,0 @@
From bdfb8ed33b54683057364df729d45e782d19e708 Mon Sep 17 00:00:00 2001
From: Marek Blaha <mblaha@redhat.com>
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:

Binary file not shown.

Binary file not shown.

View File

@ -1,19 +1,19 @@
%global dnf_lowest_compatible 4.2.22
%global dnf_lowest_compatible 4.11.0
%global dnf_plugins_extra 2.0.0
%global hawkey_version 0.46.1
%global hawkey_version 0.64.0
%bcond_without yumcompatibility
%bcond_without yumutils
Name: dnf-plugins-core
Version: 4.0.24
Version: 4.3.1
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
patch6000: backport-download-plugin-respect-install_weak_deps-option-value.patch
BuildArch: noarch
BuildRequires: cmake gettext python3-sphinx
@ -24,7 +24,8 @@ Provides: dnf-command(builddep) dnf-command(changelog) dnf-command(
Provides: dnf-command(copr) dnf-command(debug-dump) dnf-command(debug-restore)
Provides: dnf-command(debuginfo-install) dnf-command(download) dnf-command(repoclosure)
Provides: dnf-command(repograph) dnf-command(repomanage) dnf-command(reposync)
Provides: dnf-command(repodiff) dnf-plugins-extras-debug = %{version}-%{release}
Provides: dnf-command(repodiff) dnf-command(groups-manager)
Provides: dnf-plugins-extras-debug = %{version}-%{release}
Provides: dnf-plugins-extras-repoclosure = %{version}-%{release}
Provides: dnf-plugins-extras-repograph = %{version}-%{release}
Provides: dnf-plugins-extras-repomanage = %{version}-%{release}
@ -34,6 +35,7 @@ Provides: dnf-plugin-debuginfo-install = %{version}-%{release}
Provides: dnf-plugin-download = %{version}-%{release}
Provides: dnf-plugin-generate_completion_cache = %{version}-%{release}
Provides: dnf-plugin-needs_restarting = %{version}-%{release}
Provides: dnf-plugin-groups-manager = %{version}-%{release}
Provides: dnf-plugin-repoclosure = %{version}-%{release}
Provides: dnf-plugin-repodiff = %{version}-%{release}
Provides: dnf-plugin-repograph = %{version}-%{release}
@ -46,11 +48,11 @@ Provides: dnf-utils = %{version}-%{release}
Conflicts: dnf-plugins-extras-common-data < %{dnf_plugins_extra}
Conflicts: yum-utils < 1.1.31-520 yum-plugin-copr < 1.1.31-520
Obsoletes: dnf-utils < %{version}-%{release}
Obsoletes: python2-dnf-plugin-migrate < %{version}-%{release}
Obsoletes: python2-dnf-plugin-migrate < %{version}-%{release}
%description
Core Plugins for DNF. This package enhances DNF with builddep, config-manager,
copr, debug, debuginfo-install, download, needs-restarting, repoclosure,
copr, debug, debuginfo-install, download, needs-restarting, groups-manager, repoclosure,
repograph, repomanage, reposync, changelog and repodiff commands. Additionally
provides generate_completion_cache passive plugin.
@ -58,7 +60,7 @@ provides generate_completion_cache passive plugin.
Summary: Core Plugins for DNF
%{?python_provide:%python_provide python3-%{name}}
BuildRequires: python3-devel python3-dnf >= %{dnf_lowest_compatible}
BuildRequires: python3-dbus python3-libdnf python3-hawkey python3-libcomps python3-gpgme
BuildRequires: python3-dbus
Requires: python3-distro python3-dnf >= %{dnf_lowest_compatible}
Requires: python3-hawkey >= %{hawkey_version} python3-dateutil
Requires: python3-dbus
@ -150,6 +152,18 @@ Obsoletes: python3-dnf-plugins-extras-local < %{dnf_plugins_extra}
Local Plugin for DNF, Python 3 version. Automatically copy all downloaded packages to a repository
on the local filesystem and generating repo metadata.
%package -n python3-dnf-plugin-modulesync
Summary: Download module metadata and package and create repository
Requires: python3-%{name} = %{version}-%{release}
Requires: createrepo_c >= 0.17.4
Provides: dnf-plugin-modulesync = %{version}-%{release}
Provides: dnf-command(modulesync)
%description -n python3-dnf-plugin-modulesync
Download module metadata from all enabled repositories, module artifacts and profiles of matching
modules and create repository.
%package_help
%prep
@ -263,6 +277,7 @@ popd
%files -n python3-dnf-plugin-post-transaction-actions
%config(noreplace) %{_sysconfdir}/dnf/plugins/post-transaction-actions.conf
%config(noreplace) %{_sysconfdir}/dnf/plugins/post-transaction-actions.d
%{python3_sitelib}/dnf-plugins/post-transaction-actions.*
%{python3_sitelib}/dnf-plugins/__pycache__/post-transaction-actions.*
@ -279,6 +294,11 @@ popd
%{python3_sitelib}/dnf-plugins/local.*
%{python3_sitelib}/dnf-plugins/__pycache__/local.*
%files -n python3-dnf-plugin-modulesync
%{python3_sitelib}/dnf-plugins/modulesync.*
%{python3_sitelib}/dnf-plugins/__pycache__/modulesync.*
%{_mandir}/man8/dnf-modulesync.*
%files help
%{_mandir}/man1/debuginfo-install.*
%{_mandir}/man1/needs-restarting.*
@ -325,16 +345,37 @@ popd
%{_mandir}/man8/dnf-local.*
%changelog
* Tue Jun 27 2023 chenhaixing <chenhaixing@huawei.com> - 4.3.1-3
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:dnf-plugins-core:download plugin:respect install_weak_deps option value
* Thu Dec 1 2022 chenhaixing <chenhaixing@huawei.com> - 4.3.1-2
- DESC:modify incorrect contents in spec file
* Thu Nov 3 2022 chenhaixing <chenhaixing@huawei.com> - 4.3.1-1
- DESC:upgrade dnf-plugins-core version to 4.3.1
* Mon Aug 22 2022 chenhaixing <chenhaixing@huawei.com> - 4.0.24-5
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:add configfile post-transaction-actions.d
* Thu May 26 2022 wangkerong<wangkerong@h-partners.com> - 4.0.24-4
- DESC: Remove redundant BuildRequires
* Sat Jan 22 2022 hanhui<hanhui15@huawei.com> - 4.0.24-3
- DESC:Reposync does not stop downloading packages
* Fri Jan 01 2022 wangkerong<wangkerong@huawei.com> - 4.0.24-2
* Fri Jan 7 2022 wangkerong<wangkerong@huawei.com> - 4.0.24-2
- DESC:delete buildrequires of python-nose
* Tue Nov 23 2021 hanhui<hanhui15@huawei.com> - 4.0.24-1
- DESC:update to 4.0.24
* Thu Jul 20 2021 liuyumeng <liuyumeng5@huawei.com> - 4.0.17-3
* Tue Jul 20 2021 liuyumeng <liuyumeng5@huawei.com> - 4.0.17-3
- delete gdb in buildrequires
* Fri Apr 16 2021 hanhui <hanhui15@huawei.com> - 4.0.17-2