[gnome-software] flatpak: Do not ensure the AppStream data in gs_flatpak_setup



commit 909381a631e9e9be34375c653dbb79c656d7f5a5
Author: Richard Hughes <richard hughsie com>
Date:   Mon May 22 11:53:37 2017 +0100

    flatpak: Do not ensure the AppStream data in gs_flatpak_setup
    
    This can take more than 0.5s (especially when dealing with more than one remote)
    and can also take some time to timeout if the remote server stops responding.

 plugins/flatpak/gs-flatpak.c |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/plugins/flatpak/gs-flatpak.c b/plugins/flatpak/gs-flatpak.c
index 04a8c1d..26fb2f6 100644
--- a/plugins/flatpak/gs-flatpak.c
+++ b/plugins/flatpak/gs-flatpak.c
@@ -426,21 +426,6 @@ gs_flatpak_rescan_appstream_store (GsFlatpak *self,
 gboolean
 gs_flatpak_setup (GsFlatpak *self, GCancellable *cancellable, GError **error)
 {
-       g_autoptr(AsProfileTask) ptask = NULL;
-       g_autoptr(GError) error_md = NULL;
-
-       ptask = as_profile_start (gs_plugin_get_profile (self->plugin),
-                                 "%s::setup",
-                                 gs_flatpak_get_id (self));
-       g_assert (ptask != NULL);
-
-       if (!gs_flatpak_refresh_appstream (self, G_MAXUINT, 0,
-                                          cancellable,
-                                          &error_md)) {
-               g_warning ("failed to get initial available data on setup: %s",
-                          error_md->message);
-       }
-
        /* watch for changes */
        self->monitor = flatpak_installation_create_monitor (self->installation,
                                                             cancellable,


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