X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=scripts%2Fvapt-get;h=7e8224953f7390552989f562a5a09e1ecf23e62d;hb=a69bad017fcc766676f529fa1a78d3596087273c;hp=490f9ac5876ae01c42ac408f630381bdd66a72af;hpb=be9c6aed872e34b625817e77e24c8897e5f7085c;p=util-vserver.git diff --git a/scripts/vapt-get b/scripts/vapt-get index 490f9ac..7e82249 100755 --- a/scripts/vapt-get +++ b/scripts/vapt-get @@ -46,7 +46,7 @@ the GNU General Public License. This program has absolutely no warranty." exit 0 } -tmp=$(getopt -o +q --long help,version,debug,quiet,all -n "$0" -- "$@") || exit 1 +tmp=$(getopt -o +q --long help,version,debug,quiet,$VS_ALLVSERVERS_ARGS -n "$0" -- "$@") || exit 1 eval set -- "$tmp" declare -a send_through vsomething_opts @@ -57,9 +57,8 @@ while true; do (--version) showVersion ;; (--debug) send_through=( "${send_through[@]}" "$1" ); set -x;; (--quiet|-q) send_through=( "${send_through[@]}" "$1" );; - (--all) vsomething_opts=( "${vsomething_opts[@]}" "$1" );; (--) shift; break;; - (*) echo $"vapt-get: internal error; arg=='$1'" >&2; exit 1;; + (*) vsomething_opts=( "${vsomething_opts[@]}" "$1" );; esac shift done @@ -71,4 +70,4 @@ VSOMETHING_PKGMGMT=1 export VSOMETHING_TITLE VSOMETHING_WORKER VSOMETHING_PKGMGMT test ${#vsomething_opts[@]} -eq 0 || vsomething_opts=( "${vsomething_opts[@]}" -- ) -exec $_VSOMETHING "${send_through[@]}" apt-get "${vsomething_opts[@]}" "$@" +exec $_VSOMETHING "${send_through[@]}" ${APT_GET:-apt-get} "${vsomething_opts[@]}" "$@"