[gnome-software] fwupd: Ensure firmware is downloaded when not cached



commit 763f3d3ab6ae7be2d74409851ad6505283316798
Author: Richard Hughes <richard hughsie com>
Date:   Thu Jan 12 15:31:08 2017 +0000

    fwupd: Ensure firmware is downloaded when not cached

 src/plugins/gs-plugin-fwupd.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-fwupd.c b/src/plugins/gs-plugin-fwupd.c
index 0f9f2a0..208092a 100644
--- a/src/plugins/gs-plugin-fwupd.c
+++ b/src/plugins/gs-plugin-fwupd.c
@@ -567,8 +567,13 @@ gs_plugin_add_update_app (GsPlugin *plugin,
                gs_app_set_size_download (app, 0);
 
        /* only return things in the right state */
-       if (is_downloaded != g_file_test (filename_cache, G_FILE_TEST_EXISTS))
+       if (is_downloaded != g_file_test (filename_cache, G_FILE_TEST_EXISTS)) {
+               g_debug ("%s does not exist for %s, ignoring",
+                        filename_cache,
+                        gs_app_get_unique_id (app));
+               gs_plugin_fwupd_add_required_location (plugin, update_uri);
                return TRUE;
+       }
 
        /* actually add the application */
        file = g_file_new_for_path (filename_cache);


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