[gnome-software] flatpak: Do not ensure the AppStream data in gs_flatpak_setup
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] flatpak: Do not ensure the AppStream data in gs_flatpak_setup
- Date: Mon, 22 May 2017 11:20:05 +0000 (UTC)
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]