From fbd5a3e181e47a51a92370e71804c542b7ba2d96 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Wed, 2 Mar 2005 01:24:44 +0000 Subject: [PATCH] allow '--all' param git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1880 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/scripts/vyum | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/util-vserver/scripts/vyum b/util-vserver/scripts/vyum index 1ae3fe8..7004d87 100755 --- a/util-vserver/scripts/vyum +++ b/util-vserver/scripts/vyum @@ -46,10 +46,10 @@ the GNU General Public License. This program has absolutely no warranty." exit 0 } -tmp=$(getopt -o +q --long help,version,debug,quiet -n "$0" -- "$@") || exit 1 +tmp=$(getopt -o +q --long help,version,debug,quiet,all -n "$0" -- "$@") || exit 1 eval set -- "$tmp" -declare -a send_through +declare -a send_through yum_opts while true; do case "$1" in @@ -57,6 +57,7 @@ while true; do (--version) showVersion ;; (--debug) send_through=( "${send_through[@]}" "$1" ); set -x;; (--quiet|-q) send_through=( "${send_through[@]}" "$1" );; + (--all) yum_opts=( "${yum_opts[@]}" "$1" );; (--) shift; break;; (*) echo $"vyum: internal error; arg=='$1'" >&2; exit 1;; esac @@ -69,4 +70,5 @@ VSOMETHING_PKGMGMT=1 export VSOMETHING_TITLE VSOMETHING_WORKER VSOMETHING_PKGMGMT -exec $_VSOMETHING "${send_through[@]}" yum "$@" +test ${#yum_opts[@]} -eq 0 || yum_opts=( "${yum_opts[@]}" -- ) +exec $_VSOMETHING "${send_through[@]}" yum "${yum_opts[@]}" "$@" -- 1.8.1.5