1 Star 0 Fork 23

yueyuankun/dnf-plugins-core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-download-plugin-respect-install_weak_deps-option-value.patch 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
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())
--
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yue-yuankun/dnf-plugins-core.git
git@gitee.com:yue-yuankun/dnf-plugins-core.git
yue-yuankun
dnf-plugins-core
dnf-plugins-core
master

搜索帮助