[gnome-software/wip/mcrha/updates-btn-fix] gs-updates-section: Check also dependencies' download size



commit c5d75f07667a656f6d12187eeb5935fc26f96b8e
Author: Milan Crha <mcrha redhat com>
Date:   Wed Sep 1 21:00:35 2021 +0200

    gs-updates-section: Check also dependencies' download size
    
    Since the split of the app download size the code to verify whether
    the update is downloaded or not should check both the app itself
    and its dependencies. One example are "OS Updates", which is only
    a proxy app, gathering system packages to be updated. It does not
    have download size on its own.

 src/gs-updates-section.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/gs-updates-section.c b/src/gs-updates-section.c
index 0f41ba668..fa050513d 100644
--- a/src/gs-updates-section.c
+++ b/src/gs-updates-section.c
@@ -293,6 +293,9 @@ _all_offline_updates_downloaded (GsUpdatesSection *self)
                guint64 size = gs_app_get_size_download (app);
                if (size != 0)
                        return FALSE;
+               size = gs_app_get_size_download_dependencies (app);
+               if (size != 0)
+                       return FALSE;
        }
 
        return TRUE;


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