tazpkg rev 431 4.3

Change root-config option to rootconfig as variable can't have '-' in their name (4.3)
author Antoine Bodin <gokhlayeh@slitaz.org>
date Thu Mar 03 23:56:29 2011 +0100 (2011-03-03)
parents df5c6e3fb2cd
children b7bcf8431c9c
files tazpkg
line diff
     1.1 --- a/tazpkg	Fri Feb 25 03:38:14 2011 +0100
     1.2 +++ b/tazpkg	Thu Mar 03 23:56:29 2011 +0100
     1.3 @@ -1752,18 +1752,18 @@
     1.4  		
     1.5  		# Get repositories priority list.
     1.6  		look_for_priority
     1.7 -		get_options_list="root forced list root-config"
     1.8 +		get_options_list="root forced list rootconfig"
     1.9  		get_options
    1.10  		
    1.11  		[ "$root" ] && ROOT="$root" && check_base_dir "$root"
    1.12  		[ "$list" ] && INSTALL_LIST="$list"
    1.13 -		if [ "$root-config" ]; then
    1.14 +		if [ "$rootconfig" ]; then
    1.15  			if [ "$root" ]; then
    1.16  				CACHE_DIR=$root/$CACHE_DIR
    1.17  				LOCALSTATE=$root/$LOCALSTATE
    1.18  				INSTALLED=$root/$INSTALLED
    1.19  			else
    1.20 -				echo "root-config needs --root= option used." >&2
    1.21 +				echo "rootconfig needs --root= option used." >&2
    1.22  				exit 1
    1.23  			fi
    1.24  		fi	
    1.25 @@ -2653,20 +2653,20 @@
    1.26  		
    1.27  		# Get repositories priority list.
    1.28  		look_for_priority
    1.29 -		get_options_list="root forced list root-config"
    1.30 +		get_options_list="root forced list rootconfig"
    1.31  		get_options
    1.32  		
    1.33  		DO_CHECK=""
    1.34  		[ "$forced" ] && DO_CHECK=no
    1.35  		[ "$root" ] && ROOT="$root" && check_base_dir "$root"
    1.36  		[ "$list" ] && INSTALL_LIST="$list"
    1.37 -		if [ "$root-config" ]; then
    1.38 +		if [ "$rootconfig" ]; then
    1.39  			if [ "$root" ]; then
    1.40  				CACHE_DIR=$root/$CACHE_DIR
    1.41  				LOCALSTATE=$root/$LOCALSTATE
    1.42  				INSTALLED=$root/$INSTALLED
    1.43  			else
    1.44 -				echo "root-config needs --root= option used." >&2
    1.45 +				echo "rootconfig needs --root= option used." >&2
    1.46  				exit 1
    1.47  			fi
    1.48  		fi