8 Star 0 Fork 30

src-openEuler/libdnf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-dnf-repo-Fix-utimes-error-messages.patch 963 Bytes
一键复制 编辑 原始数据 按行查看 历史
chenhaixing 提交于 2024-01-02 09:03 . sync upstream patch
From 933f00f5366e9935c9f00f842a4bb60b7da87ad4 Mon Sep 17 00:00:00 2001
From: Alessandro Astone <ales.astone@gmail.com>
Date: Sun, 1 Oct 2023 19:18:54 +0200
Subject: [PATCH] dnf-repo: Fix utimes error message
Oops, syscall returns 0 on success
Conflict:NA
Reference:https://github.com/rpm-software-management/libdnf/commit/933f00f5366e9935c9f00f842a4bb60b7da87ad4
---
libdnf/dnf-repo.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libdnf/dnf-repo.cpp b/libdnf/dnf-repo.cpp
index c2495f564..ca3d1920a 100644
--- a/libdnf/dnf-repo.cpp
+++ b/libdnf/dnf-repo.cpp
@@ -1798,7 +1798,7 @@ dnf_repo_update(DnfRepo *repo,
if (repoImpl->isInSync()) {
/* reset timestamp */
ret = utimes(repoImpl->repomdFn.c_str(), NULL);
- if (!ret)
+ if (ret != 0)
g_debug("Failed to reset timestamp on repomd.xml");
ret = dnf_state_done(state, error);
if (!ret)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/libdnf.git
git@gitee.com:src-openeuler/libdnf.git
src-openeuler
libdnf
libdnf
master

搜索帮助