From 5630095714ec012401accddb070c9850dad7773d Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard@hughsie.com>
Date: Fri, 6 Feb 2015 20:14:16 +0000
Subject: [PATCH] hif: Adapt to the new Hawkey API
---
backends/hif/pk-backend-hif.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/backends/hif/pk-backend-hif.c b/backends/hif/pk-backend-hif.c
index bc9bef2..2e497cd 100644
--- a/backends/hif/pk-backend-hif.c
+++ b/backends/hif/pk-backend-hif.c
@@ -650,7 +650,11 @@ hif_utils_create_sack_for_filters (PkBackendJob *job,
/* create empty sack */
solv_dir = hif_utils_real_path (hif_context_get_solv_dir (priv->context));
install_root = hif_utils_real_path (hif_context_get_install_root (priv->context));
+#if HY_VERSION_CHECK(0,5,3)
+ sack = hy_sack_create (solv_dir, NULL, install_root, NULL, HY_MAKE_CACHE_DIR);
+#else
sack = hy_sack_create (solv_dir, NULL, install_root, HY_MAKE_CACHE_DIR);
+#endif
if (sack == NULL) {
ret = hif_error_set_from_hawkey (hy_get_errno (), error);
g_prefix_error (error, "failed to create sack in %s for %s: ",
--
2.1.0