1 Star 0 Fork 23

yueyuankun/dnf-plugins-core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-reposync-Respect-norepopath-with-metadata-path.patch 866 Bytes
一键复制 编辑 原始数据 按行查看 历史
From 1177f339dc3c428d57aef9ec6ae5d1db09ff7b95 Mon Sep 17 00:00:00 2001
From: Pavla Kratochvilova <pkratoch@redhat.com>
Date: Wed, 24 Jul 2024 11:05:18 +0200
Subject: [PATCH] reposync: Respect --norepopath with --metadata-path
Resolves: https://issues.redhat.com/browse/RHEL-40914
---
plugins/reposync.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/reposync.py b/plugins/reposync.py
index 0ff936f..ab513e7 100644
--- a/plugins/reposync.py
+++ b/plugins/reposync.py
@@ -180,7 +180,7 @@ class RepoSyncCommand(dnf.cli.Command):
def metadata_target(self, repo):
if self.opts.metadata_path:
- return _pkgdir(self.opts.metadata_path, repo.id)
+ return _pkgdir(self.opts.metadata_path, repo.id if not self.opts.norepopath else '')
else:
return self.repo_target(repo)
--
2.46.2
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

搜索帮助