[gnome-software/gnome-40: 1/2] 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/gnome-40: 1/2] gs-app: Correct download size for app's runtime
- Date: Mon, 19 Jul 2021 14:01:40 +0000 (UTC)
commit ab8e2b66dbe3fa8d7bd41d1b92d408543b66ae7e
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 49cadcc15..4153d8d36 100644
--- a/lib/gs-app.c
+++ b/lib/gs-app.c
@@ -3458,7 +3458,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]