[gnome-software/wip/automatic-update-fixes: 89/92] updates-section: Use gs_app_is_downloaded()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/automatic-update-fixes: 89/92] updates-section: Use gs_app_is_downloaded()
- Date: Thu, 7 Jul 2022 08:19:24 +0000 (UTC)
commit c6903fd6b74ddbde5db045ea67fc826824153210
Author: Milan Crha <mcrha redhat com>
Date: Wed Jun 15 18:15:04 2022 +0200
updates-section: Use gs_app_is_downloaded()
src/gs-updates-section.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
---
diff --git a/src/gs-updates-section.c b/src/gs-updates-section.c
index ca39e6fab..69e083984 100644
--- a/src/gs-updates-section.c
+++ b/src/gs-updates-section.c
@@ -288,15 +288,7 @@ _all_offline_updates_downloaded (GsUpdatesSection *self)
/* use the download size to figure out what is downloaded and what not */
for (guint i = 0; i < gs_app_list_length (self->list); i++) {
GsApp *app = gs_app_list_index (self->list, i);
- GsSizeType size_type;
- guint64 size_bytes;
-
- size_type = gs_app_get_size_download (app, &size_bytes);
- if (size_type != GS_SIZE_TYPE_VALID || size_bytes != 0)
- return FALSE;
-
- size_type = gs_app_get_size_download_dependencies (app, &size_bytes);
- if (size_type != GS_SIZE_TYPE_VALID || size_bytes != 0)
+ if (!gs_app_is_downloaded (app))
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]