[gnome-software] trivial: Check the right thing to fix installing .flatpak bundles



commit 9843a41e29889c01d65f971662574d8c32716004
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 1402ca0..2756596 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -2309,12 +2309,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]