[gnome-software] Fix compile with libxmlb from git master



commit 8cd8f49b45b0f0eff92d3a7fee89ebb664df76dc
Author: Richard Hughes <richard hughsie com>
Date:   Thu Jun 25 22:06:34 2020 +0100

    Fix compile with libxmlb from git master
    
    We removed the XB_BUILDER_COMPILE_FLAG_NO_NODE_CACHE flag and just turned off
    the XbNode cache by default.

 plugins/core/gs-plugin-appstream.c                | 3 ---
 plugins/external-appstream/gs-install-appstream.c | 3 ---
 plugins/flatpak/gs-flatpak.c                      | 9 ---------
 3 files changed, 15 deletions(-)
---
diff --git a/plugins/core/gs-plugin-appstream.c b/plugins/core/gs-plugin-appstream.c
index 743c0c61..a82e4ca8 100644
--- a/plugins/core/gs-plugin-appstream.c
+++ b/plugins/core/gs-plugin-appstream.c
@@ -579,9 +579,6 @@ gs_plugin_appstream_check_silo (GsPlugin *plugin,
        g_debug ("ensuring %s", blobfn);
        priv->silo = xb_builder_ensure (builder, file,
                                        XB_BUILDER_COMPILE_FLAG_IGNORE_INVALID |
-#if LIBXMLB_CHECK_VERSION(0, 2, 0)
-                                       XB_BUILDER_COMPILE_FLAG_NO_NODE_CACHE |
-#endif
                                        XB_BUILDER_COMPILE_FLAG_SINGLE_LANG,
                                        NULL, error);
        if (priv->silo == NULL)
diff --git a/plugins/external-appstream/gs-install-appstream.c 
b/plugins/external-appstream/gs-install-appstream.c
index 0273808a..04fe88b3 100644
--- a/plugins/external-appstream/gs-install-appstream.c
+++ b/plugins/external-appstream/gs-install-appstream.c
@@ -94,9 +94,6 @@ gs_install_appstream_check_content_type (GFile *file, GError **error)
        }
        xb_builder_import_source (builder, source);
        silo = xb_builder_compile (builder,
-#if LIBXMLB_CHECK_VERSION(0, 2, 0)
-                                  XB_BUILDER_COMPILE_FLAG_NO_NODE_CACHE |
-#endif
                                   XB_BUILDER_COMPILE_FLAG_NONE,
                                   NULL, &error_local);
        if (silo == NULL) {
diff --git a/plugins/flatpak/gs-flatpak.c b/plugins/flatpak/gs-flatpak.c
index 8c968f57..c0602349 100644
--- a/plugins/flatpak/gs-flatpak.c
+++ b/plugins/flatpak/gs-flatpak.c
@@ -801,9 +801,6 @@ gs_flatpak_rescan_appstream_store (GsFlatpak *self,
        g_debug ("ensuring %s", blobfn);
        self->silo = xb_builder_ensure (builder, file,
                                        XB_BUILDER_COMPILE_FLAG_IGNORE_INVALID |
-#if LIBXMLB_CHECK_VERSION(0, 2, 0)
-                                       XB_BUILDER_COMPILE_FLAG_NO_NODE_CACHE |
-#endif
                                        XB_BUILDER_COMPILE_FLAG_SINGLE_LANG,
                                        NULL, error);
        if (self->silo == NULL)
@@ -2327,9 +2324,6 @@ gs_flatpak_refine_appstream_from_bytes (GsFlatpak *self,
 
        xb_builder_import_source (builder, source);
        silo = xb_builder_compile (builder,
-#if LIBXMLB_CHECK_VERSION(0, 2, 0)
-                                  XB_BUILDER_COMPILE_FLAG_NO_NODE_CACHE |
-#endif
                                   XB_BUILDER_COMPILE_FLAG_SINGLE_LANG,
                                   cancellable,
                                   error);
@@ -2946,9 +2940,6 @@ gs_flatpak_file_to_app_ref (GsFlatpak *self,
 
        /* build silo */
        silo = xb_builder_compile (builder,
-#if LIBXMLB_CHECK_VERSION(0, 2, 0)
-                                  XB_BUILDER_COMPILE_FLAG_NO_NODE_CACHE |
-#endif
                                   XB_BUILDER_COMPILE_FLAG_SINGLE_LANG,
                                   cancellable,
                                   error);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]