1 |
On 27-08-2017 12:53:23 -0700, Zac Medico wrote: |
2 |
> On 08/27/2017 08:06 AM, Fabian Groffen wrote: |
3 |
> > Prior to this commit, the reported sizes would look like: |
4 |
> > |
5 |
> > * Final size of build directory: 34942 KiB |
6 |
> > * Final size of installed tree: 5627 KiB |
7 |
> > |
8 |
> > Because the sizes aren't aligned, it is hard to (visually) compare them. |
9 |
> > On top of this, because the numbers are sometimes bigger, print a human |
10 |
> > friendly size after the KiB size if applicable, like so: |
11 |
> > |
12 |
> > * Final size of build directory: 1906 KiB (1.8 MiB) |
13 |
> > * Final size of installed tree: 7 KiB |
14 |
> > |
15 |
> > It should be noted that in case both sizes have a human-readable |
16 |
> > variant, they are also aligned. |
17 |
> > |
18 |
> > The helper functions are defined and used in a subshell to avoid |
19 |
> > pollution of the caller's environment. |
20 |
> > --- |
21 |
> > bin/phase-functions.sh | 53 ++++++++++++++++++++++++++++++++++++++++++++++---- |
22 |
> > 1 file changed, 49 insertions(+), 4 deletions(-) |
23 |
> |
24 |
> Looks good. Please merge. |
25 |
|
26 |
Pushed, thanks! |
27 |
|
28 |
Fabian |
29 |
|
30 |
-- |
31 |
Fabian Groffen |
32 |
Gentoo on a different level |