代码拉取完成,页面将自动刷新
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)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。