[gnome-software/gnome-3-22] flatpak: Don't try to refine extra details about a a flatpakrepo file



commit c9991f047d3163586c637ef62beef87231b3003b
Author: Richard Hughes <richard hughsie com>
Date:   Wed Oct 12 11:07:53 2016 +0100

    flatpak: Don't try to refine extra details about a a flatpakrepo file
    
    (cherry picked from commit 22aec6d4630a5b703139eb0a7774f8bcb3949888)

 src/plugins/gs-flatpak.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-flatpak.c b/src/plugins/gs-flatpak.c
index de8c379..99e91ce 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -1429,6 +1429,8 @@ gs_plugin_refine_item_metadata (GsFlatpak *self,
        g_assert (ptask != NULL);
 
        /* not applicable */
+       if (gs_app_get_kind (app) == AS_APP_KIND_SOURCE)
+               return TRUE;
        if (gs_app_get_flatpak_kind (app) != FLATPAK_REF_KIND_APP)
                return TRUE;
 
@@ -1503,7 +1505,9 @@ gs_plugin_refine_item_size (GsFlatpak *self,
        g_autoptr(AsProfileTask) ptask = NULL;
 
        /* not applicable */
-       if (gs_app_get_state(app) == AS_APP_STATE_AVAILABLE_LOCAL)
+       if (gs_app_get_state (app) == AS_APP_STATE_AVAILABLE_LOCAL)
+               return TRUE;
+       if (gs_app_get_kind (app) == AS_APP_KIND_SOURCE)
                return TRUE;
 
        /* already set */


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