[gnome-software/gnome-3-18] Set cache age for background update monitor



commit 3b90d4b4cf6193ec424a0a4fe37829d8ee11df5c
Author: Kalev Lember <klember redhat com>
Date:   Wed Oct 14 13:17:55 2015 +0200

    Set cache age for background update monitor
    
    Now that commit 2bdc001f784ade91fd5fd2823e5ddc4f776fc89e changed
    pk_client_refresh_cache_async to use force=FALSE, we need to set a cache
    age to make sure that cache refreshing actually happens. PackageKit's
    default is to never update the cache when cache age isn't explicitly
    set.

 src/gs-update-monitor.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-update-monitor.c b/src/gs-update-monitor.c
index a67b4f6..8ddccbe 100644
--- a/src/gs-update-monitor.c
+++ b/src/gs-update-monitor.c
@@ -559,6 +559,7 @@ gs_update_monitor_init (GsUpdateMonitor *monitor)
                      "background", TRUE,
                      "interactive", FALSE,
                      "only-download", TRUE,
+                     "cache-age", 60 * 60 * 24,
                      NULL);
 
        monitor->network_available = FALSE;


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