[gnome-software/wip/ubuntu-xenial] trivial: Build broken - Use GFile correctly
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/ubuntu-xenial] trivial: Build broken - Use GFile correctly
- Date: Tue, 26 Apr 2016 07:25:40 +0000 (UTC)
commit 058e57d985b009468db4a4e8e84ff86df703326f
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 1238c3b..d597770 100644
--- a/src/plugins/gs-plugin-xdg-app.c
+++ b/src/plugins/gs-plugin-xdg-app.c
@@ -1415,7 +1415,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[] = {
@@ -1430,7 +1429,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: ");
@@ -1521,7 +1519,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]