[gnome-software/wip/temp/ubuntu-xenial-rebased: 305/326] trivial: Build broken - Use GFile correctly



commit 9d21be3f60ff0f7c78206d17b230a930d23e73a5
Author: Robert Ancell <robert ancell canonical com>
Date:   Mon Apr 25 11:40:24 2016 +0200

    trivial: Build broken - Use GFile correctly

 src/plugins/gs-plugin-xdg-app.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/gs-plugin-xdg-app.c b/src/plugins/gs-plugin-xdg-app.c
index 3185780..cf9c6ff 100644
--- a/src/plugins/gs-plugin-xdg-app.c
+++ b/src/plugins/gs-plugin-xdg-app.c
@@ -1381,7 +1381,6 @@ gs_plugin_file_to_app (GsPlugin *plugin,
        g_autoptr(GBytes) appstream_gz = NULL;
        g_autoptr(GBytes) icon_data = NULL;
        g_autoptr(GBytes) metadata = NULL;
-       g_autoptr(GFile) file = NULL;
        g_autoptr(GsApp) app = NULL;
        g_autoptr(XdgAppBundleRef) xref_bundle = NULL;
        const gchar *mimetypes[] = {
@@ -1396,7 +1395,6 @@ gs_plugin_file_to_app (GsPlugin *plugin,
                return TRUE;
 
        /* load bundle */
-       file = g_file_new_for_path (filename);
        xref_bundle = xdg_app_bundle_ref_new (file, error);
        if (xref_bundle == NULL) {
                g_prefix_error (error, "error loading bundle: ");
@@ -1487,7 +1485,7 @@ gs_plugin_file_to_app (GsPlugin *plugin,
 
 
        /* set the source so we can install it higher up */
-       gs_app_add_source (app, filename);
+       gs_app_add_source (app, g_file_get_path (file));
 
        /* not quite true: this just means we can update this specific app */
        if (xdg_app_bundle_ref_get_origin (xref_bundle))


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