[gnome-software] Support the 'Created' property on fwupd historical updates



commit 824f71e1ef4f1abe7427ea9924810837039d4733
Author: Richard Hughes <richard hughsie com>
Date:   Wed Jan 27 13:27:58 2016 +0000

    Support the 'Created' property on fwupd historical updates
    
    This allows us to set the dialog title correctly after the last commit.

 src/plugins/gs-plugin-fwupd.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-fwupd.c b/src/plugins/gs-plugin-fwupd.c
index d9e3990..ccc83f4 100644
--- a/src/plugins/gs-plugin-fwupd.c
+++ b/src/plugins/gs-plugin-fwupd.c
@@ -244,6 +244,10 @@ gs_plugin_fwupd_set_app_from_kv (GsApp *app, const gchar *key, GVariant *val)
                gs_app_set_size (app, g_variant_get_uint64 (val));
                return;
        }
+       if (g_strcmp0 (key, "Created") == 0) {
+               gs_app_set_install_date (app, g_variant_get_uint64 (val));
+               return;
+       }
        if (g_strcmp0 (key, "UpdateVersion") == 0) {
                gs_app_set_update_version (app, g_variant_get_string (val, NULL));
                return;


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