From 3affc66ca3382a9d8b5c2d1f6259c9d283f8561b Mon Sep 17 00:00:00 2001
From: Kalev Lember <klember@redhat.com>
Date: Thu, 15 Jun 2017 14:22:42 +0200
Subject: [PATCH] dnf: Fix an inverted condition that led to frequent crashes
https://bugzilla.redhat.com/show_bug.cgi?id=1460825
---
backends/dnf/pk-backend-dnf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backends/dnf/pk-backend-dnf.c b/backends/dnf/pk-backend-dnf.c
index ead934f1b..a940801f0 100644
--- a/backends/dnf/pk-backend-dnf.c
+++ b/backends/dnf/pk-backend-dnf.c
@@ -1497,7 +1497,7 @@ pk_backend_refresh_repo (PkBackendJob *job,
}
/* copy the appstream files somewhere that the GUI will pick them up */
- if (dnf_utils_refresh_repo_appstream (repo, error))
+ if (!dnf_utils_refresh_repo_appstream (repo, error))
return FALSE;
/* done */
--
2.13.0