cookutils rev 542 slitaz-tank

libcookiso.sh: Add some comments for distro_sizes and get_size function.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Oct 15 16:11:46 2012 +0000 (2012-10-15)
parents 6d69ff3dcdb2
children daf103b96ed1
files lib/libcookiso.sh
line diff
     1.1 --- a/lib/libcookiso.sh	Sat Oct 06 15:02:15 2012 +0000
     1.2 +++ b/lib/libcookiso.sh	Mon Oct 15 16:11:46 2012 +0000
     1.3 @@ -241,6 +241,7 @@
     1.4  	local proc=$(grep -s '^processor' < /proc/cpuinfo | wc -l)
     1.5  	echo "-d$(lzma_history_bits $1) -mt${proc:-1}"
     1.6  }
     1.7 +
     1.8  lzma_set_size()
     1.9  {
    1.10  	# Update size field for lzma'd file packed using -si switch
    1.11 @@ -357,6 +358,7 @@
    1.12  	
    1.13  }
    1.14  
    1.15 +# find out the distro size and number of packages
    1.16  distro_sizes()
    1.17  {
    1.18  	if [ "$time" ]; then
    1.19 @@ -471,6 +473,7 @@
    1.20  fi
    1.21  }
    1.22  
    1.23 +# get size based on package list
    1.24  get_size()
    1.25  {
    1.26  cat $LOCALSTATE/packages.list $TMP_DIR/packages.list 2>/dev/null | awk "{ \