[gnome-software/gnome-3-22] Do not refine origin or size on a flatpak bundle



commit 6b3b9f221bf135b1aba6b882ff1421d555feab56
Author: Richard Hughes <richard hughsie com>
Date:   Sun Sep 25 09:06:12 2016 +0100

    Do not refine origin or size on a flatpak bundle

 src/plugins/gs-flatpak.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-flatpak.c b/src/plugins/gs-flatpak.c
index 10ef140..3d13b03 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -903,6 +903,10 @@ gs_plugin_refine_item_origin (GsFlatpak *self,
        if (gs_app_get_origin (app) != NULL)
                return TRUE;
 
+       /* not applicable */
+       if (gs_app_get_state(app) == AS_APP_STATE_AVAILABLE_LOCAL)
+               return TRUE;
+
        /* ensure metadata exists */
        ptask = as_profile_start_literal (gs_plugin_get_profile (self->plugin),
                                          "flatpak::refine-origin");
@@ -1233,6 +1237,10 @@ gs_plugin_refine_item_size (GsFlatpak *self,
        guint64 installed_size = GS_APP_SIZE_UNKNOWABLE;
        g_autoptr(AsProfileTask) ptask = NULL;
 
+       /* not applicable */
+       if (gs_app_get_state(app) == AS_APP_STATE_AVAILABLE_LOCAL)
+               return TRUE;
+
        /* already set */
        if (gs_app_is_installed (app)) {
                /* only care about the installed size if the app is installed */


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