From 7ad15edb625c8ab8496c3d9ed8d03b429713ba0f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 25 Apr 2017 15:24:11 -0400 Subject: [PATCH] Improve display of partial extension sizes The installed size in the metadata refers to the full extension. If we have subpaths, the actual installed size may be much smaller. Unfortunately, it appears hard to obtain the actual size, so just hint at this fact by displaying a '<' before the size. --- app/flatpak-builtins-info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/flatpak-builtins-info.c b/app/flatpak-builtins-info.c index f6acbc54..512febf6 100644 --- a/app/flatpak-builtins-info.c +++ b/app/flatpak-builtins-info.c @@ -204,7 +204,7 @@ flatpak_builtin_info (int argc, char **argv, GCancellable *cancellable, GError * g_autofree char *formatted = NULL; formatted = g_format_size (size); - g_print (" %s", formatted); + g_print (" %s%s", subpaths && subpaths[0] ? "<" : "", formatted); } if (subpaths)