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)
