# HG changeset patch # User Christophe Lincoln # Date 1334243935 -7200 # Node ID 3285c8c600e2768690e0dd2b4fcac505cbfcb260 # Parent 0c7e4875ea3cd9fcd13fa821e031a99db6ad868d let install more than one package at once: tazpkg -gi pkg1 pkg2 pkg3 --opt1 --opt2 diff -r 0c7e4875ea3c -r 3285c8c600e2 tazpkg --- a/tazpkg Thu Apr 12 16:59:05 2012 +0200 +++ b/tazpkg Thu Apr 12 17:18:55 2012 +0200 @@ -175,8 +175,10 @@ fi if [ "$get_option" = "${get_option/=}" ]; then export $get_option=yes + export opts="$opts --$get_option" else export $get_option + export opts="$opts --$get_option" fi done } @@ -2699,6 +2701,16 @@ get_options_list="root forced list rootconfig" get_options + # Install all pkgs specified in argument. + for arg in $@ + do + case $arg in + -*|get-install) continue ;; + *) tazpkg -gi $arg $opts ;; + esac + done + exit 0 + DO_CHECK="" [ "$forced" ] && DO_CHECK=no [ "$root" ] && ROOT="$root" && check_base_dir "$root"