slitaz-tools rev 703

tazinst: upgrade: remove %
author Dominique Corbex <domcox@slitaz.org>
date Sun Mar 04 21:31:39 2012 +0100 (2012-03-04)
parents da6885341c6a
children e2c4bab7dc33
files installer/tazinst
line diff
     1.1 --- a/installer/tazinst	Fri Mar 02 20:00:49 2012 +0100
     1.2 +++ b/installer/tazinst	Sun Mar 04 21:31:39 2012 +0100
     1.3 @@ -20,7 +20,7 @@
     1.4  # 7: Another instance is running
     1.5  # 8: Internal error
     1.6  
     1.7 -VERSION=3.31
     1.8 +VERSION=3.32
     1.9  
    1.10  # Internationalization
    1.11  . /usr/bin/gettext.sh
    1.12 @@ -1064,19 +1064,15 @@
    1.13  		fi
    1.14  	done
    1.15  
    1.16 -	# Calculate the percent for one package and install.
    1.17 +	# Install packages.
    1.18  	debug "Installing any packages..."
    1.19  	sleep 2
    1.20  	if [ "$packages" == "0" ]; then
    1.21  		debug "packages to install: 0"
    1.22  	else
    1.23 -		onepkg=$((48/$packages))
    1.24 -		pct=50
    1.25  		# Get-install all missing pkgs.
    1.26  		for pkg in `cat packages-to-install.list`
    1.27  		do
    1.28 -			pct=$(($pct+$onepkg))
    1.29 -			echo $pct
    1.30  			debug "Installing: $pkg..."
    1.31  			# Get install package and answer yes in case of dependencies.
    1.32  			pkgname=`grep ^$pkg /var/lib/tazpkg/packages.list`
    1.33 @@ -1085,7 +1081,6 @@
    1.34  			rm -f $pkgname.tazpkg
    1.35  		done
    1.36  	fi
    1.37 -	echo 100
    1.38  	debug "Installation of packages complete..."
    1.39  	sleep 2
    1.40  }