tazpkg rev 436 4.3
Fix --rootconfig option, should works well now.
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Fri Mar 04 17:49:53 2011 +0100 (2011-03-04) |
parents | 2969b58a89c1 |
children | 0d950a34740a |
files | tazpkg |
line diff
1.1 --- a/tazpkg Fri Mar 04 15:57:33 2011 +0100 1.2 +++ b/tazpkg Fri Mar 04 17:49:53 2011 +0100 1.3 @@ -1751,8 +1751,6 @@ 1.4 check_for_package_on_cmdline 1.5 check_for_package_file 1.6 1.7 - # Get repositories priority list. 1.8 - look_for_priority 1.9 get_options_list="root forced list rootconfig" 1.10 get_options 1.11 1.12 @@ -1761,13 +1759,17 @@ 1.13 if [ "$rootconfig" ]; then 1.14 if [ "$root" ]; then 1.15 CACHE_DIR=$root/$CACHE_DIR 1.16 + SAVE_CACHE_DIR=$CACHE_DIR 1.17 LOCALSTATE=$root/$LOCALSTATE 1.18 - INSTALLED=$root/$INSTALLED 1.19 else 1.20 echo "rootconfig needs --root= option used." >&2 1.21 exit 1 1.22 fi 1.23 fi 1.24 + 1.25 + # Get repositories priority list. 1.26 + look_for_priority 1.27 + 1.28 # Check if forced install. 1.29 if ! [ "$forced" ]; then 1.30 check_for_installed_package $ROOT 1.31 @@ -2657,9 +2659,7 @@ 1.32 check_root 1.33 check_for_package_on_cmdline 1.34 check_for_packages_list 1.35 - 1.36 - # Get repositories priority list. 1.37 - look_for_priority 1.38 + 1.39 get_options_list="root forced list rootconfig" 1.40 get_options 1.41 1.42 @@ -2670,13 +2670,17 @@ 1.43 if [ "$rootconfig" ]; then 1.44 if [ "$root" ]; then 1.45 CACHE_DIR=$root/$CACHE_DIR 1.46 + SAVE_CACHE_DIR=$CACHE_DIR 1.47 LOCALSTATE=$root/$LOCALSTATE 1.48 - INSTALLED=$root/$INSTALLED 1.49 else 1.50 echo "rootconfig needs --root= option used." >&2 1.51 exit 1 1.52 fi 1.53 fi 1.54 + 1.55 + # Get repositories priority list. 1.56 + look_for_priority 1.57 + 1.58 AUTOEXEC="no" 1.59 if ! check_for_package_in_list check; then 1.60 PACKAGE=get-$PACKAGE