[gnome-software] trivia: Do not refresh all the remotes on a temporary flatpak object
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivia: Do not refresh all the remotes on a temporary flatpak object
- Date: Thu, 9 Mar 2017 12:44:13 +0000 (UTC)
commit 86467d8f2221fc2ec9740c4019dd6191120591c2
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.
plugins/flatpak/gs-flatpak.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/flatpak/gs-flatpak.c b/plugins/flatpak/gs-flatpak.c
index 56dd396..fdceb84 100644
--- a/plugins/flatpak/gs-flatpak.c
+++ b/plugins/flatpak/gs-flatpak.c
@@ -514,6 +514,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]