[gnome-software] Fall back to the fwupd-provided license



commit 6e29012eec3a3bc2b01f595e82b59c13569bb361
Author: Richard Hughes <richard hughsie com>
Date:   Wed Jan 6 15:10:01 2016 +0000

    Fall back to the fwupd-provided license
    
    In most cases we can use the AppStream-provided version but this is not
    available for local .cab files.

 src/plugins/gs-plugin-fwupd.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-fwupd.c b/src/plugins/gs-plugin-fwupd.c
index 7349e1c..0a4844a 100644
--- a/src/plugins/gs-plugin-fwupd.c
+++ b/src/plugins/gs-plugin-fwupd.c
@@ -253,6 +253,12 @@ gs_plugin_fwupd_set_app_from_kv (GsApp *app, const gchar *key, GVariant *val)
                gs_app_set_update_version (app, g_variant_get_string (val, NULL));
                return;
        }
+       if (g_strcmp0 (key, "License") == 0) {
+               gs_app_set_licence (app,
+                                   g_variant_get_string (val, NULL),
+                                   GS_APP_QUALITY_NORMAL);
+               return;
+       }
        if (g_strcmp0 (key, "UpdateDescription") == 0) {
                g_autofree gchar *tmp = NULL;
                tmp = as_markup_convert (g_variant_get_string (val, NULL),


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