[gnome-software] 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] trivial: Show a warning when an application vanishes from xdg-app metadata
- Date: Thu, 14 Apr 2016 10:49:41 +0000 (UTC)
commit 000a631dcef92aab77c8e68e2f1a9a00ebaba451
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 6b8d147..5366e93 100644
--- a/src/plugins/gs-plugin-xdg-app.c
+++ b/src/plugins/gs-plugin-xdg-app.c
@@ -859,8 +859,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]