mmdebstrap-autopkgtest-build-qemu: add --arch option
This commit is contained in:
parent
e07818d2d6
commit
be3cd00243
1 changed files with 5 additions and 2 deletions
|
@ -44,6 +44,9 @@ opt_boot() {
|
||||||
opt_architecture() {
|
opt_architecture() {
|
||||||
ARCHITECTURE="$1"
|
ARCHITECTURE="$1"
|
||||||
}
|
}
|
||||||
|
opt_arch() {
|
||||||
|
ARCHITECTURE="$1"
|
||||||
|
}
|
||||||
opt_apt_proxy() {
|
opt_apt_proxy() {
|
||||||
# consumed by setup-testbed
|
# consumed by setup-testbed
|
||||||
export AUTOPKGTEST_APT_PROXY="$1"
|
export AUTOPKGTEST_APT_PROXY="$1"
|
||||||
|
@ -86,14 +89,14 @@ positional_7() {
|
||||||
|
|
||||||
while test "$#" -gt 0; do
|
while test "$#" -gt 0; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--architecture=*|--boot=*|--keyring=*|--mirror=*|--script=*|--size=*)
|
--architecture=*|--arch=*|--boot=*|--keyring=*|--mirror=*|--script=*|--size=*)
|
||||||
optname="${1%%=*}"
|
optname="${1%%=*}"
|
||||||
"opt_${optname#--}" "${1#*=}"
|
"opt_${optname#--}" "${1#*=}"
|
||||||
;;
|
;;
|
||||||
--apt-proxy=*)
|
--apt-proxy=*)
|
||||||
opt_apt_proxy "${1#*=}"
|
opt_apt_proxy "${1#*=}"
|
||||||
;;
|
;;
|
||||||
--architecture|--boot|--keyring|--mirror|--script|--size)
|
--architecture|--arch|--boot|--keyring|--mirror|--script|--size)
|
||||||
test "$#" -ge 2 || usage_error "missing argument for $1"
|
test "$#" -ge 2 || usage_error "missing argument for $1"
|
||||||
"opt_${1#--}" "$2"
|
"opt_${1#--}" "$2"
|
||||||
shift
|
shift
|
||||||
|
|
Loading…
Reference in a new issue