[gnome-software] trivial: Accept any LicenseRef-proprietary prefix



commit 92a73df12706b4c55889d25eb529e8af8ce9a297
Author: Richard Hughes <richard hughsie com>
Date:   Fri Sep 2 18:17:44 2016 +0100

    trivial: Accept any LicenseRef-proprietary prefix

 src/gs-app.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index af59c34..059348d 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -1758,7 +1758,7 @@ gs_app_get_license_token_is_nonfree (const gchar *token)
                return FALSE;
 
        /* a token, but still nonfree */
-       if (g_strcmp0 (token, "@LicenseRef-proprietary") == 0)
+       if (g_str_has_prefix (token, "@LicenseRef-proprietary"))
                return TRUE;
 
        /* if it has a prefix, assume it is free */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]