[gnome-software/gnome-3-20] trivial: Show a warning when an application vanishes from xdg-app metadata
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-20] trivial: Show a warning when an application vanishes from xdg-app metadata
- Date: Thu, 14 Apr 2016 17:29:40 +0000 (UTC)
commit a859dc9785a038207e90f7385708e12751e55d68
Author: Richard Hughes <richard hughsie com>
Date: Thu Apr 14 11:28:31 2016 +0100
trivial: Show a warning when an application vanishes from xdg-app metadata
src/plugins/gs-plugin-xdg-app.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-xdg-app.c b/src/plugins/gs-plugin-xdg-app.c
index 2c7239d..713eb13 100644
--- a/src/plugins/gs-plugin-xdg-app.c
+++ b/src/plugins/gs-plugin-xdg-app.c
@@ -823,8 +823,10 @@ gs_plugin_refine_item_metadata (GsPlugin *plugin,
/* AppStream sets the source to appname/arch/branch, if this isn't set
* we can't break out the fields */
- if (gs_app_get_source_default (app) == NULL)
+ if (gs_app_get_source_default (app) == NULL) {
+ g_warning ("no source set by appstream for %s", plugin->name);
return TRUE;
+ }
/* parse the ref */
xref = xdg_app_ref_parse (gs_app_get_source_default (app), error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]