!44 dnf-plugins-core:download plugin:respect install_weak_deps option value
From: @chen-haixing-hw Reviewed-by: @anonymous_z Signed-off-by: @anonymous_z
This commit is contained in:
commit
125f092607
@ -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())
|
||||
--
|
||||
@ -7,12 +7,13 @@
|
||||
|
||||
Name: dnf-plugins-core
|
||||
Version: 4.3.1
|
||||
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-download-plugin-respect-install_weak_deps-option-value.patch
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: cmake gettext python3-sphinx
|
||||
@ -344,6 +345,12 @@ 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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user