[gnome-software] Check the flatpak's user level for an runtime's origin too



commit ae4e0bfba44061c847f804c2ea66a593cf1337cc
Author: Joaquim Rocha <jrocha endlessm com>
Date:   Tue Jul 26 14:19:54 2016 +0100

    Check the flatpak's user level for an runtime's origin too
    
    Runtimes can be installed either at a user or system level, thus we
    should verify always the counterpart installation when refining a
    runtime's origin.

 src/plugins/gs-flatpak.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/gs-flatpak.c b/src/plugins/gs-flatpak.c
index fdaa88a..4e445fc 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -887,12 +887,12 @@ gs_plugin_refine_item_origin (GsFlatpak *self,
 
        /* check the system installation if we're on a user one */
        if (ignore_error &&
-           flatpak_installation_get_is_user (self->installation) &&
            gs_app_get_flatpak_kind (app) == FLATPAK_REF_KIND_RUNTIME) {
-               g_autoptr(FlatpakInstallation) installation = NULL;
+               g_autoptr(FlatpakInstallation) installation =
+                       gs_flatpak_get_installation_counterpart (self,
+                                                                cancellable,
+                                                                error);
 
-               installation = flatpak_installation_new_system (cancellable,
-                                                               error);
                if (installation == NULL)
                        return FALSE;
 


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