[gnome-software] trivial: Ensure the AppStream refine is run before dummy
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Ensure the AppStream refine is run before dummy
- Date: Thu, 21 Apr 2016 10:11:01 +0000 (UTC)
commit f992cf294c49400c4a7fd004a7a5130c6fd13b8c
Author: Richard Hughes <richard hughsie com>
Date: Thu Apr 21 11:10:15 2016 +0100
trivial: Ensure the AppStream refine is run before dummy
src/gs-self-test.c | 2 ++
src/plugins/gs-plugin-dummy.c | 11 +++++++++++
2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-self-test.c b/src/gs-self-test.c
index 988b111..365d034 100644
--- a/src/gs-self-test.c
+++ b/src/gs-self-test.c
@@ -352,6 +352,8 @@ gs_plugin_loader_installed_func (GsPluginLoader *plugin_loader)
/* check various bitfields */
g_assert (gs_app_has_quirk (app, AS_APP_QUIRK_PROVENANCE));
+ g_assert_cmpstr (gs_app_get_license (app), ==,
+ "<a href=\"http://spdx.org/licenses/GPL-2.0+\">GPL-2.0+</a>");
g_assert (gs_app_get_license_is_free (app));
/* check kudos */
diff --git a/src/plugins/gs-plugin-dummy.c b/src/plugins/gs-plugin-dummy.c
index d6528aa..35ad51a 100644
--- a/src/plugins/gs-plugin-dummy.c
+++ b/src/plugins/gs-plugin-dummy.c
@@ -42,6 +42,17 @@ gs_plugin_get_name (void)
}
/**
+ * gs_plugin_order_after:
+ */
+const gchar **
+gs_plugin_order_after (GsPlugin *plugin)
+{
+ static const gchar *deps[] = { "appstream",
+ NULL };
+ return deps;
+}
+
+/**
* gs_plugin_initialize:
*/
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]