1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00
pacman/scripts
Dave Reisner a98fce0896 scripts/library: add size_to_human
This function is the reverse of human_to_size, and converts integer byte
sizes to human readable SI prefixed values.

A logical extension of this might be to mimic the formatter that pacman
uses and allow a second argument to be passed in which can coerce the
size, rather than reducing until the unit count is below 1024.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-06-25 23:39:34 -05:00
..
library scripts/library: add size_to_human 2012-06-25 23:39:34 -05:00
po Merge branch 'maint' 2012-05-20 17:41:21 -05:00
.gitignore rankmirrors: move to contrib/ 2012-04-24 20:33:08 -04:00
Makefile.am scripts/library: add size_to_human 2012-06-25 23:39:34 -05:00
makepkg.sh.in repo-add: add checkdepends information 2012-06-25 23:08:15 -05:00
pacman-db-upgrade.sh.in Merge branch 'maint' 2012-01-30 22:00:26 -06:00
pacman-key.sh.in Merge branch 'maint' 2012-05-20 17:41:21 -05:00
pacman-optimize.sh.in pacman-optimize: standardize on openssl usage, only touch local/ 2012-03-08 17:26:23 -06:00
pkgdelta.sh.in pkgdelta: use human_to_size to parse --min-pkg-size 2012-06-25 23:39:28 -05:00
repo-add.sh.in repo-add: add checkdepends information 2012-06-25 23:08:15 -05:00