[gnome-software] trivial: Only show the license-is-free debug line if the license is set
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Only show the license-is-free debug line if the license is set
- Date: Mon, 23 May 2016 15:13:57 +0000 (UTC)
commit 20df1b0459225963de575bf2b4b22c6f42909bfd
Author: Richard Hughes <richard hughsie com>
Date: Mon May 23 16:05:16 2016 +0100
trivial: Only show the license-is-free debug line if the license is set
No need to be alarming when it's not being requested.
src/gs-app.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 747fe05..9550117 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -295,10 +295,11 @@ gs_app_to_string (GsApp *app)
tmp = g_hash_table_lookup (app->urls, as_url_kind_to_string (AS_URL_KIND_HOMEPAGE));
if (tmp != NULL)
gs_app_kv_lpad (str, "url{homepage}", tmp);
- if (app->license != NULL)
+ if (app->license != NULL) {
gs_app_kv_lpad (str, "license", app->license);
- gs_app_kv_lpad (str, "license-is-free",
- gs_app_get_license_is_free (app) ? "yes" : "no");
+ gs_app_kv_lpad (str, "license-is-free",
+ gs_app_get_license_is_free (app) ? "yes" : "no");
+ }
if (app->management_plugin != NULL)
gs_app_kv_lpad (str, "management-plugin", app->management_plugin);
if (app->summary_missing != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]