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



commit 22aec6d4630a5b703139eb0a7774f8bcb3949888
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

 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 ef4d396..f156ea2 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -1542,6 +1542,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;
 
@@ -1620,7 +1622,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]