[gnome-software/wip/ubuntu-xenial] trivial: Build broken - Fix the self tests



commit adbe65e2f7996c3bd31963271e373e7d7341528b
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 2ae6aa8..b85aa33 100644
--- a/src/gs-self-test.c
+++ b/src/gs-self-test.c
@@ -693,7 +693,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]