[gnome-software/gnome-3-22] Fix installing flatpak bundles



commit 476eb50625348042b1d8a77c6a1733bd3791c448
Author: Richard Hughes <richard hughsie com>
Date:   Mon Sep 26 16:24:10 2016 +0100

    Fix installing flatpak bundles
    
    We had changed the status to INSTALLING further up the vfunc and so were trying
    to install the bundle as if from a remote. Just use the presence of a local
    file to detect a bundle.

 src/plugins/gs-flatpak.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-flatpak.c b/src/plugins/gs-flatpak.c
index 3d13b03..218beba 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -1594,7 +1594,8 @@ gs_flatpak_app_install (GsFlatpak *self,
        }
 
        /* use the source for local apps */
-       if (gs_app_get_state (app) == AS_APP_STATE_AVAILABLE_LOCAL) {
+       if (gs_app_get_local_file (app) != NULL) {
+               g_debug ("installing bundle %s", gs_app_get_unique_id (app));
                xref = flatpak_installation_install_bundle (self->installation,
                                                            gs_app_get_local_file (app),
                                                            gs_flatpak_progress_cb,


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