diff options
author | Richard Jones <rjones@redhat.com> | 2011-03-18 14:53:04 +0000 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2011-03-18 14:53:04 +0000 |
commit | fb6a900047ba372ec933ebf1b3d7339c4f33243c (patch) | |
tree | 3eff1f12264482dbf5876a150c62bfc77fa4394e /febootstrap.ml | |
parent | 91819fa0e61ee0b41f2342fd5149b385146bb954 (diff) | |
download | febootstrap-fb6a900047ba372ec933ebf1b3d7339c4f33243c.tar.gz febootstrap-fb6a900047ba372ec933ebf1b3d7339c4f33243c.tar.xz febootstrap-fb6a900047ba372ec933ebf1b3d7339c4f33243c.zip |
Collect the size (ft_size) of files from package handlers.
Diffstat (limited to 'febootstrap.ml')
-rw-r--r-- | febootstrap.ml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/febootstrap.ml b/febootstrap.ml index 9ea9885..3c634c4 100644 --- a/febootstrap.ml +++ b/febootstrap.ml @@ -126,7 +126,8 @@ let () = else ( insert_dir parent; let newdir = (parent, { ft_dir = true; ft_config = false; - ft_ghost = false; ft_mode = 0o40755 }, + ft_ghost = false; ft_mode = 0o40755; + ft_size = 0 }, "") in newdir :: loop parent ) @@ -140,12 +141,12 @@ let () = if false then ( List.iter ( fun (name, { ft_dir = dir; ft_ghost = ghost; ft_config = config; - ft_mode = mode }, pkg) -> - printf "%s [%s%s%s%o] from %s\n" name + ft_mode = mode; ft_size = size }, pkg) -> + printf "%s [%s%s%s%o %d] from %s\n" name (if dir then "dir " else "") (if ghost then "ghost " else "") (if config then "config " else "") - mode + mode size pkg ) files ); |