[gnome-software] Ignore the 'and later' part of the SPDX ID when working out if it is 'free'
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Ignore the 'and later' part of the SPDX ID when working out if it is 'free'
- Date: Tue, 5 Dec 2017 11:31:49 +0000 (UTC)
commit 3379c6dd7496346326b528b6e3717f5f9941ecb7
Author: Richard Hughes <richard hughsie com>
Date: Tue Dec 5 11:30:52 2017 +0000
Ignore the 'and later' part of the SPDX ID when working out if it is 'free'
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=789615
lib/gs-app.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/lib/gs-app.c b/lib/gs-app.c
index bbf7773..ed74876 100644
--- a/lib/gs-app.c
+++ b/lib/gs-app.c
@@ -2266,6 +2266,7 @@ gs_app_set_license (GsApp *app, GsAppQuality quality, const gchar *license)
tokens = as_utils_spdx_license_tokenize (license);
for (i = 0; tokens[i] != NULL; i++) {
if (g_strcmp0 (tokens[i], "&") == 0 ||
+ g_strcmp0 (tokens[i], "+") == 0 ||
g_strcmp0 (tokens[i], "|") == 0)
continue;
if (gs_app_get_license_token_is_nonfree (tokens[i])) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]