[gnome-software/wip/mcrha/download-size-fix] gs-app: Correct download size for app's runtime
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/mcrha/download-size-fix] gs-app: Correct download size for app's runtime
- Date: Thu, 15 Jul 2021 17:24:59 +0000 (UTC)
commit a39fe9509ae7ae07ac3436c3c676660b35f87b21
Author: Milan Crha <mcrha redhat com>
Date: Thu Jul 15 19:23:30 2021 +0200
gs-app: Correct download size for app's runtime
When requesting download size, also the runtime should use the download
size, not the install size.
lib/gs-app.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/gs-app.c b/lib/gs-app.c
index b96733c23..ce334de38 100644
--- a/lib/gs-app.c
+++ b/lib/gs-app.c
@@ -3481,7 +3481,7 @@ gs_app_get_size_download (GsApp *app)
/* add the runtime if this is not installed */
if (priv->runtime != NULL) {
if (gs_app_get_state (priv->runtime) == GS_APP_STATE_AVAILABLE)
- sz += gs_app_get_size_installed (priv->runtime);
+ sz += gs_app_get_size_download (priv->runtime);
}
/* add related apps */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]