[gnome-software/wip/kalev/gnome-3-22: 50/96] trivial: Check the right thing to fix installing .flatpak bundles



commit 8e273c4cab4f661679a66e6a7361869e5a1e2f95
Author: Richard Hughes <richard hughsie com>
Date:   Thu Feb 9 14:52:59 2017 +0000

    trivial: Check the right thing to fix installing .flatpak bundles

 src/plugins/gs-flatpak.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/gs-flatpak.c b/src/plugins/gs-flatpak.c
index 1158fc8..3a305a2 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -2148,12 +2148,11 @@ gs_flatpak_app_install (GsFlatpak *self,
                return FALSE;
 
        if (g_strcmp0 (gs_app_get_flatpak_file_type (app), "flatpak") == 0) {
-               /* no local_file set */
-               if (gs_app_get_origin (app) == NULL) {
+               if (gs_app_get_local_file (app) == NULL) {
                        g_set_error (error,
                                     GS_PLUGIN_ERROR,
                                     GS_PLUGIN_ERROR_NOT_SUPPORTED,
-                                    "no local_file set for %s",
+                                    "no local file set for bundle %s",
                                     gs_app_get_unique_id (app));
                        return FALSE;
                }


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