[gnome-software] flatpak: Fix looking up existing app when installing .flatpak bundles



commit 64bfe508e385ebbeb9391c32f0f24a534ff93546
Author: Kalev Lember <klember redhat com>
Date:   Fri Jan 4 19:23:26 2019 +0100

    flatpak: Fix looking up existing app when installing .flatpak bundles
    
    This was already fixed for .flatpakref files in commit 80a17dc; this
    commit now applies the same fix for .flatpak bundles.

 plugins/flatpak/gs-plugin-flatpak.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/flatpak/gs-plugin-flatpak.c b/plugins/flatpak/gs-plugin-flatpak.c
index ed696400..b4f059ce 100644
--- a/plugins/flatpak/gs-plugin-flatpak.c
+++ b/plugins/flatpak/gs-plugin-flatpak.c
@@ -839,7 +839,7 @@ gs_plugin_flatpak_file_to_app_bundle (GsPlugin *plugin,
        ref = gs_flatpak_app_get_ref_display (app);
        app_tmp = gs_plugin_flatpak_find_app_by_ref (plugin, ref, cancellable, NULL);
        if (app_tmp != NULL)
-               return g_steal_pointer (&app);
+               return g_steal_pointer (&app_tmp);
 
        /* force this to be 'any' scope for installation */
        gs_app_set_scope (app, AS_APP_SCOPE_UNKNOWN);


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