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



commit bd38a02384a78000ddc05d682ffee69a4bb48e4c
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 1fdc6c8..53b1b98 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -1418,6 +1418,8 @@ gs_plugin_refine_item_metadata (GsFlatpak *self,
        g_autoptr(GFile) installation_path = 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;
 
@@ -1488,7 +1490,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]