mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-21 23:38:49 -05:00
Remove spacing when outputting package sizes
This spacing appears to have been added to align sizes. It sometimes worked... $ pacman -Si glibc | grep Size Download Size : 8.03 MiB Installed Size : 35.08 MiB And it sometimes failed... $ pacman -Si pacman | grep Size Download Size : 662.82 KiB Installed Size : 4045.00 KiB Remove the spaces for a consistent output. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
47ea63ff3b
commit
4291500c82
@ -275,10 +275,10 @@ void dump_pkg_full(alpm_pkg_t *pkg, int extra)
|
|||||||
|
|
||||||
size = humanize_size(alpm_pkg_get_size(pkg), '\0', 2, &label);
|
size = humanize_size(alpm_pkg_get_size(pkg), '\0', 2, &label);
|
||||||
if(from == ALPM_PKG_FROM_SYNCDB) {
|
if(from == ALPM_PKG_FROM_SYNCDB) {
|
||||||
printf("%s%s%s %6.2f %s\n", config->colstr.title, titles[T_DOWNLOAD_SIZE],
|
printf("%s%s%s %.2f %s\n", config->colstr.title, titles[T_DOWNLOAD_SIZE],
|
||||||
config->colstr.nocolor, size, label);
|
config->colstr.nocolor, size, label);
|
||||||
} else if(from == ALPM_PKG_FROM_FILE) {
|
} else if(from == ALPM_PKG_FROM_FILE) {
|
||||||
printf("%s%s%s %6.2f %s\n", config->colstr.title, titles[T_COMPRESSED_SIZE],
|
printf("%s%s%s %.2f %s\n", config->colstr.title, titles[T_COMPRESSED_SIZE],
|
||||||
config->colstr.nocolor, size, label);
|
config->colstr.nocolor, size, label);
|
||||||
} else {
|
} else {
|
||||||
/* autodetect size for "Installed Size" */
|
/* autodetect size for "Installed Size" */
|
||||||
@ -286,7 +286,7 @@ void dump_pkg_full(alpm_pkg_t *pkg, int extra)
|
|||||||
}
|
}
|
||||||
|
|
||||||
size = humanize_size(alpm_pkg_get_isize(pkg), label[0], 2, &label);
|
size = humanize_size(alpm_pkg_get_isize(pkg), label[0], 2, &label);
|
||||||
printf("%s%s%s %6.2f %s\n", config->colstr.title, titles[T_INSTALLED_SIZE],
|
printf("%s%s%s %.2f %s\n", config->colstr.title, titles[T_INSTALLED_SIZE],
|
||||||
config->colstr.nocolor, size, label);
|
config->colstr.nocolor, size, label);
|
||||||
|
|
||||||
string_display(titles[T_PACKAGER], alpm_pkg_get_packager(pkg), cols);
|
string_display(titles[T_PACKAGER], alpm_pkg_get_packager(pkg), cols);
|
||||||
|
Loading…
Reference in New Issue
Block a user