[gnome-software] Fix installing flatpak bundles



commit 29b15e7f20a0eac6bbe13851110c0067172990b5
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 298c354..ccf0f5b 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -1982,7 +1982,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]