[gnome-software] Never include the size of the runtime in the apps installed size
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Never include the size of the runtime in the apps installed size
- Date: Fri, 24 Mar 2017 12:02:20 +0000 (UTC)
commit dacff92a0f4c7bfcb9433820ea740f7b18037904
Author: Richard Hughes <richard hughsie com>
Date: Fri Mar 24 11:26:21 2017 +0000
Never include the size of the runtime in the apps installed size
lib/gs-app.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/lib/gs-app.c b/lib/gs-app.c
index 4410223..bde06d7 100644
--- a/lib/gs-app.c
+++ b/lib/gs-app.c
@@ -2672,8 +2672,6 @@ gs_app_set_size_download (GsApp *app, guint64 size_download)
* Gets the size on disk, either for an existing application of one that could
* be installed.
*
- * If there is a runtime not yet installed then this is also added.
- *
* Returns: size in bytes, 0 for unknown, or %GS_APP_SIZE_UNKNOWABLE for invalid.
*
* Since: 3.22
@@ -2688,12 +2686,6 @@ gs_app_get_size_installed (GsApp *app)
/* this app */
sz = app->size_installed;
- /* add the runtime if this is not installed */
- if (app->runtime != NULL) {
- if (gs_app_get_state (app->runtime) == AS_APP_STATE_AVAILABLE)
- 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]