[gnome-software/gnome-3-22] trivial: Include related apps when getting the installed size
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-22] trivial: Include related apps when getting the installed size
- Date: Tue, 7 Mar 2017 16:31:08 +0000 (UTC)
commit a89dcf52b0c8fc519ef54dfb4628564154893c31
Author: Richard Hughes <richard hughsie com>
Date: Thu Jan 12 19:42:11 2017 +0000
trivial: Include related apps when getting the installed size
src/gs-app.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 222ae3b..08fec9e 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -2624,6 +2624,12 @@ gs_app_get_size_installed (GsApp *app)
sz += gs_app_get_size_installed (app->runtime);
}
+ /* add related apps */
+ for (guint i = 0; i < app->related->len; i++) {
+ GsApp *app_related = g_ptr_array_index (app->related, i);
+ sz += gs_app_get_size_installed (app_related);
+ }
+
return sz;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]