tazpkg diff tazpkg @ rev 487
Fixed tazpkg install option.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu May 05 13:47:00 2011 +0000 (2011-05-05) |
parents | 78856de4b6e9 |
children | 90b056540855 |
line diff
1.1 --- a/tazpkg Tue May 03 16:55:51 2011 +0200 1.2 +++ b/tazpkg Thu May 05 13:47:00 2011 +0000 1.3 @@ -1772,11 +1772,21 @@ 1.4 check_for_package_on_cmdline 1.5 check_for_package_file 1.6 1.7 - get_options_list="root forced list" 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 [ "$rootconifg" ]; 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 + else 1.19 + echo "rootconfig needs --root= option used." >&2 1.20 + exit 1 1.21 + fi 1.22 + fi 1.23 1.24 # Get repositories priority list. 1.25 look_for_priority