[gnome-software/wip/jrocha/fix-runtime-extensions-update] fixup! flatpak: Set apps as updatable instead of their extensions



commit 8e73fcc82135e595385402597c2cfe7340e704ed
Author: Joaquim Rocha <jrocha endlessm com>
Date:   Fri Jan 26 16:51:14 2018 +0100

    fixup! flatpak: Set apps as updatable instead of their extensions

 plugins/flatpak/gs-flatpak.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/plugins/flatpak/gs-flatpak.c b/plugins/flatpak/gs-flatpak.c
index 635f5ccf..7927656c 100644
--- a/plugins/flatpak/gs-flatpak.c
+++ b/plugins/flatpak/gs-flatpak.c
@@ -1134,7 +1134,6 @@ get_main_app_of_related (GsFlatpak *self,
                         GCancellable *cancellable,
                         GError **error)
 {
-       g_autofree gchar *main_app_name = g_strdup (gs_flatpak_app_get_ref_name (related_app));
        g_autoptr(FlatpakInstalledRef) ref = NULL;
        const gchar *ref_name;
        g_auto(GStrv) app_tokens = NULL;
@@ -1165,7 +1164,6 @@ get_main_app_of_related (GsFlatpak *self,
                                                      app_tokens[3],
                                                      cancellable,
                                                      error);
-
        if (ref == NULL)
                return NULL;
 
@@ -1193,6 +1191,7 @@ get_real_app_for_update (GsFlatpak *self,
                                   gs_app_get_unique_id (app),
                                   error_local->message);
                        g_propagate_error (error, g_steal_pointer (&error_local));
+                       gs_flatpak_error_convert (error);
                        return NULL;
                }
 


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