[gnome-software/1253-software-is-not-preparing-any-updates] gs-update-monitor: Pending updates not downloaded after 14 days waiting
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1253-software-is-not-preparing-any-updates] gs-update-monitor: Pending updates not downloaded after 14 days waiting
- Date: Mon, 17 May 2021 11:07:20 +0000 (UTC)
commit 3d29ee24fc92ad4326c0aaff91e1b4a7d1f9db2e
Author: Milan Crha <mcrha redhat com>
Date: Mon May 17 13:04:49 2021 +0200
gs-update-monitor: Pending updates not downloaded after 14 days waiting
The pending updates should be auto-downloaded when there was nothing installed
for 14 days, but the code had been checking 14 days since the last notification
about the pending updates, which is done more often.
Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1253
src/gs-update-monitor.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/src/gs-update-monitor.c b/src/gs-update-monitor.c
index f22b5eb28..87ccc2204 100644
--- a/src/gs-update-monitor.c
+++ b/src/gs-update-monitor.c
@@ -151,13 +151,6 @@ check_if_timestamp_more_than_days_ago (GsUpdateMonitor *monitor, const gchar *ti
return timestamp_days >= days;
}
-static gboolean
-no_notification_for_days (GsUpdateMonitor *monitor,
- guint days)
-{
- return check_if_timestamp_more_than_days_ago (monitor, "update-notification-timestamp", days);
-}
-
static gboolean
should_download_updates (GsUpdateMonitor *monitor)
{
@@ -519,7 +512,7 @@ get_updates_finished_cb (GObject *object, GAsyncResult *res, gpointer data)
if (should_download_updates (monitor) &&
(security_timestamp_old != security_timestamp ||
- no_notification_for_days (monitor, 14))) {
+ check_if_timestamp_more_than_days_ago (monitor, "install-timestamp", 14))) {
g_autoptr(GsPluginJob) plugin_job = NULL;
/* download any updates; individual plugins are responsible for deciding
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]