# HG changeset patch # User Antoine Bodin # Date 1299192989 -3600 # Node ID 3719533763de691087de51c14f81b3183782163e # Parent df5c6e3fb2cd3e1d09782abd2ace8aec999c264a Change root-config option to rootconfig as variable can't have '-' in their name (4.3) diff -r df5c6e3fb2cd -r 3719533763de tazpkg --- a/tazpkg Fri Feb 25 03:38:14 2011 +0100 +++ b/tazpkg Thu Mar 03 23:56:29 2011 +0100 @@ -1752,18 +1752,18 @@ # Get repositories priority list. look_for_priority - get_options_list="root forced list root-config" + get_options_list="root forced list rootconfig" get_options [ "$root" ] && ROOT="$root" && check_base_dir "$root" [ "$list" ] && INSTALL_LIST="$list" - if [ "$root-config" ]; then + if [ "$rootconfig" ]; then if [ "$root" ]; then CACHE_DIR=$root/$CACHE_DIR LOCALSTATE=$root/$LOCALSTATE INSTALLED=$root/$INSTALLED else - echo "root-config needs --root= option used." >&2 + echo "rootconfig needs --root= option used." >&2 exit 1 fi fi @@ -2653,20 +2653,20 @@ # Get repositories priority list. look_for_priority - get_options_list="root forced list root-config" + get_options_list="root forced list rootconfig" get_options DO_CHECK="" [ "$forced" ] && DO_CHECK=no [ "$root" ] && ROOT="$root" && check_base_dir "$root" [ "$list" ] && INSTALL_LIST="$list" - if [ "$root-config" ]; then + if [ "$rootconfig" ]; then if [ "$root" ]; then CACHE_DIR=$root/$CACHE_DIR LOCALSTATE=$root/$LOCALSTATE INSTALLED=$root/$INSTALLED else - echo "root-config needs --root= option used." >&2 + echo "rootconfig needs --root= option used." >&2 exit 1 fi fi