[gnome-software/gnome-3-26] Ignore the 'and later' part of the SPDX ID when working out if it is 'free'



commit 9c20d3a2144589f40c85de39cf8498699deceb72
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 2bf835f..8f5d1da 100644
--- a/lib/gs-app.c
+++ b/lib/gs-app.c
@@ -2215,6 +2215,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]