[gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 308/331] trivial: Build broken - Fix the self tests
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 308/331] trivial: Build broken - Fix the self tests
- Date: Wed, 4 May 2016 14:24:25 +0000 (UTC)
commit d63d62ac0febe9ca99ba239a7c7497058b469559
Author: Richard Hughes <richard hughsie com>
Date: Mon Apr 25 11:00:21 2016 +0100
trivial: Build broken - Fix the self tests
src/gs-self-test.c | 2 +-
src/plugins/gs-plugin-dpkg.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-self-test.c b/src/gs-self-test.c
index aad1280..2f8e305 100644
--- a/src/gs-self-test.c
+++ b/src/gs-self-test.c
@@ -438,7 +438,7 @@ gs_plugin_loader_dpkg_func (GsPluginLoader *plugin_loader)
/* load local file */
fn = gs_test_get_filename ("tests/chiron-1.1-1.deb");
g_assert (fn != NULL);
- file = g_file_new_for-path (fn);
+ file = g_file_new_for_path (fn);
app = gs_plugin_loader_file_to_app (plugin_loader,
file,
GS_PLUGIN_REFINE_FLAGS_DEFAULT,
diff --git a/src/plugins/gs-plugin-dpkg.c b/src/plugins/gs-plugin-dpkg.c
index acfd311..b5005fc 100644
--- a/src/plugins/gs-plugin-dpkg.c
+++ b/src/plugins/gs-plugin-dpkg.c
@@ -87,7 +87,7 @@ gs_plugin_file_to_app (GsPlugin *plugin,
"${Homepage}\\n"
"${Description}");
argv[2] = g_strdup ("-W");
- argv[3] = g_strdup (g_file_get_path (file));
+ argv[3] = g_file_get_path (file);
if (!g_spawn_sync (NULL, argv, NULL,
G_SPAWN_SEARCH_PATH | G_SPAWN_STDERR_TO_DEV_NULL,
NULL, NULL, &output, NULL, NULL, error))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]