PackageKit/0002-Reflect-latest-changes-in-libdnf.patch
Stephen Gallagher fff14f2575
Add patch to support modularity
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2018-07-30 11:34:41 -04:00

35 lines
1.0 KiB
Diff

From 372b746c0cd2fcbf8c695a3a89834e58f55ee2a7 Mon Sep 17 00:00:00 2001
From: Jaroslav Mracek <jmracek@redhat.com>
Date: Tue, 6 Mar 2018 14:37:50 +0100
Subject: [PATCH 2/2] Reflect latest changes in libdnf
Requires: libdnf-0.13.0+
G object DnfPackageSet in libdnf was replaced by c++ class therefore
g_object_unref cannot be used anymore, but the new dnf_packageset_free has to be
used instead.
---
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 a34c05b799dd2baf2bbd72492b66b3112af386ae..414a13f320a2e4fb3cff4f8ad4ae661c6bcd41b6 100644
--- a/backends/dnf/pk-backend-dnf.c
+++ b/backends/dnf/pk-backend-dnf.c
@@ -851,11 +851,11 @@ dnf_utils_run_query_with_newest_filter (DnfSack *sack, HyQuery query)
g_ptr_array_add (results, g_object_ref (pkg));
}
hy_query_free (query_tmp);
g_ptr_array_unref (results_tmp);
- g_object_unref (pkgset);
+ dnf_packageset_free(pkgset);
return results;
}
/**
--
2.17.1