[gnome-software/wip/hughsie/fwupd] trivial: Always get the latest checksum



commit a8c34f2bf153b30e953d2bbf4f0eb62af27f40d9
Author: Richard Hughes <richard hughsie com>
Date:   Thu Mar 19 17:53:01 2015 +0000

    trivial: Always get the latest checksum

 src/plugins/gs-plugin-fwupd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-fwupd.c b/src/plugins/gs-plugin-fwupd.c
index 698adfc..1348aa8 100644
--- a/src/plugins/gs-plugin-fwupd.c
+++ b/src/plugins/gs-plugin-fwupd.c
@@ -268,10 +268,10 @@ gs_plugin_fwupd_add_device (GsPlugin *plugin,
                                   as_release_get_version (rel));
                        continue;
                }
-               checksum = g_strdup (tmp);
 
                /* get the update text, if it exists */
                if (update_version == NULL) {
+                       checksum = g_strdup (tmp);
                        tmp = as_release_get_version (rel);
                        if (g_strstr_len (tmp, -1, ".") != NULL) {
                                update_version = g_strdup (tmp);


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