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



commit 9e414cd568e6a47545c47b110990c1dee9e1ac66
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 9be8fab..95b9931 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -1093,6 +1093,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");
@@ -1454,6 +1458,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]