[gnome-software] gs-flatpak: Set the app's real branch when setting up its metadata



commit e9fa3ca6c20c157d19e485ff8b8ee39439c6f497
Author: Joaquim Rocha <jrocha endlessm com>
Date:   Fri Dec 2 16:18:37 2016 +0100

    gs-flatpak: Set the app's real branch when setting up its metadata
    
    Otherwise there can be a discrepancy between the app's flatpak branch
    (metadata) and its real branch which can lead to problems.

 src/plugins/gs-flatpak.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-flatpak.c b/src/plugins/gs-flatpak.c
index c030d43..5b74320 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -606,6 +606,7 @@ gs_flatpak_set_metadata (GsFlatpak *self, GsApp *app, FlatpakRef *xref)
 {
        gs_app_set_bundle_kind (app, AS_BUNDLE_KIND_FLATPAK);
        gs_app_set_management_plugin (app, gs_plugin_get_name (self->plugin));
+       gs_app_set_branch (app, flatpak_ref_get_branch (xref));
        gs_app_set_flatpak_kind (app, flatpak_ref_get_kind (xref));
        gs_app_set_flatpak_name (app, flatpak_ref_get_name (xref));
        gs_app_set_flatpak_arch (app, flatpak_ref_get_arch (xref));


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