[gnome-software/gnome-3-16] Set cache age for background update monitor
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-16] Set cache age for background update monitor
- Date: Wed, 14 Oct 2015 11:48:32 +0000 (UTC)
commit 38d3e8d0fab69884629eb05efb624ec1cf6afa4c
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 a859a3e..75e8d1d 100644
--- a/src/gs-update-monitor.c
+++ b/src/gs-update-monitor.c
@@ -521,6 +521,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]