From be3cd00243eaf9c0ce3816a06e34c0782a792915 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Tue, 19 Sep 2023 11:17:50 +0200 Subject: [PATCH] mmdebstrap-autopkgtest-build-qemu: add --arch option --- mmdebstrap-autopkgtest-build-qemu | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mmdebstrap-autopkgtest-build-qemu b/mmdebstrap-autopkgtest-build-qemu index 15bb02d..fb8fc1e 100644 --- a/mmdebstrap-autopkgtest-build-qemu +++ b/mmdebstrap-autopkgtest-build-qemu @@ -44,6 +44,9 @@ opt_boot() { opt_architecture() { ARCHITECTURE="$1" } +opt_arch() { + ARCHITECTURE="$1" +} opt_apt_proxy() { # consumed by setup-testbed export AUTOPKGTEST_APT_PROXY="$1" @@ -86,14 +89,14 @@ positional_7() { while test "$#" -gt 0; do case "$1" in - --architecture=*|--boot=*|--keyring=*|--mirror=*|--script=*|--size=*) + --architecture=*|--arch=*|--boot=*|--keyring=*|--mirror=*|--script=*|--size=*) optname="${1%%=*}" "opt_${optname#--}" "${1#*=}" ;; --apt-proxy=*) 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" "opt_${1#--}" "$2" shift