[gnome-software] trivial: Build broken - Fix the self tests
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Build broken - Fix the self tests
- Date: Mon, 25 Apr 2016 10:03:08 +0000 (UTC)
commit 9d5503450fc2940ea9207f005c05dc4e749799dc
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 | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-self-test.c b/src/gs-self-test.c
index c7d7731..752bce7 100644
--- a/src/gs-self-test.c
+++ b/src/gs-self-test.c
@@ -446,7 +446,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 4fe6b47..bade68d 100644
--- a/src/plugins/gs-plugin-dpkg.c
+++ b/src/plugins/gs-plugin-dpkg.c
@@ -70,7 +70,7 @@ gs_plugin_file_to_app (GsPlugin *plugin,
return TRUE;
/* exec sync */
- argv = g_new0 (gchar *, 4);
+ argv = g_new0 (gchar *, 5);
argv[0] = g_strdup (DPKG_DEB_BINARY);
argv[1] = g_strdup ("--showformat=${Package}\\n"
"${Version}\\n"
@@ -78,7 +78,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]