# HG changeset patch # User Antoine Bodin # Date 1299257393 -3600 # Node ID 62e749776c9efebdc683487f0ab1ea4a25e7e4f1 # Parent 2969b58a89c1007adcfd6088b7a907f7a9651674 Fix --rootconfig option, should works well now. diff -r 2969b58a89c1 -r 62e749776c9e tazpkg --- a/tazpkg Fri Mar 04 15:57:33 2011 +0100 +++ b/tazpkg Fri Mar 04 17:49:53 2011 +0100 @@ -1751,8 +1751,6 @@ check_for_package_on_cmdline check_for_package_file - # Get repositories priority list. - look_for_priority get_options_list="root forced list rootconfig" get_options @@ -1761,13 +1759,17 @@ if [ "$rootconfig" ]; then if [ "$root" ]; then CACHE_DIR=$root/$CACHE_DIR + SAVE_CACHE_DIR=$CACHE_DIR LOCALSTATE=$root/$LOCALSTATE - INSTALLED=$root/$INSTALLED else echo "rootconfig needs --root= option used." >&2 exit 1 fi fi + + # Get repositories priority list. + look_for_priority + # Check if forced install. if ! [ "$forced" ]; then check_for_installed_package $ROOT @@ -2657,9 +2659,7 @@ check_root check_for_package_on_cmdline check_for_packages_list - - # Get repositories priority list. - look_for_priority + get_options_list="root forced list rootconfig" get_options @@ -2670,13 +2670,17 @@ if [ "$rootconfig" ]; then if [ "$root" ]; then CACHE_DIR=$root/$CACHE_DIR + SAVE_CACHE_DIR=$CACHE_DIR LOCALSTATE=$root/$LOCALSTATE - INSTALLED=$root/$INSTALLED else echo "rootconfig needs --root= option used." >&2 exit 1 fi fi + + # Get repositories priority list. + look_for_priority + AUTOEXEC="no" if ! check_for_package_in_list check; then PACKAGE=get-$PACKAGE