[gnome-software/gnome-3-22] trivia: Do not refresh all the remotes on a temporary flatpak object



commit b6da14058fd196ca9d5e8a56c85e32fb5b81c43e
Author: Richard Hughes <richard hughsie com>
Date:   Thu Mar 9 11:19:57 2017 +0000

    trivia: Do not refresh all the remotes on a temporary flatpak object
    
    We do this per-remote when required, and we don't want to refresh everything at
    startup like the other objects.

 src/plugins/gs-flatpak.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-flatpak.c b/src/plugins/gs-flatpak.c
index 8be46aa..c5a0df3 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -464,6 +464,10 @@ gs_flatpak_refresh_appstream (GsFlatpak *self, guint cache_age,
                                  gs_flatpak_get_id (self));
        g_assert (ptask != NULL);
 
+       /* do not care */
+       if (self->flags & GS_FLATPAK_FLAG_IS_TEMPORARY)
+               return TRUE;
+
        /* get remotes */
        xremotes = flatpak_installation_list_remotes (self->installation,
                                                      cancellable,


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