makechrootpkg: fix short option handling for makepkg_args
Currently, when multiple short options are passed as a single argument, only the one that matches the first case statement will be parsed. This shall be fixed by using switch-case resume.
This commit is contained in:
parent
5d02c6df7f
commit
d82bc69716
|
@ -311,14 +311,14 @@ fi
|
||||||
# Pass all arguments after -- right to makepkg
|
# Pass all arguments after -- right to makepkg
|
||||||
makepkg_args+=("${@:$OPTIND}")
|
makepkg_args+=("${@:$OPTIND}")
|
||||||
|
|
||||||
# See if -R or -e was passed to makepkg
|
# See if -R, -e or -A was passed to makepkg
|
||||||
for arg in "${@:$OPTIND}"; do
|
for arg in "${@:$OPTIND}"; do
|
||||||
case ${arg%%=*} in
|
case ${arg%%=*} in
|
||||||
--skip*|--holdver|--ignorearch) verifysource_args+=("$arg") ;;
|
--skip*|--holdver|--ignorearch) verifysource_args+=("$arg") ;;
|
||||||
--repackage|--noextract) keepbuilddir=1 ;;
|
--repackage|--noextract) keepbuilddir=1 ;;
|
||||||
--*) ;;
|
--*) ;;
|
||||||
-*A*) verifysource_args+=(-A) ;;
|
-*A*) verifysource_args+=(-A) ;;&
|
||||||
-*R*|-*e*) keepbuilddir=1 ;;
|
-*R*|-*e*) keepbuilddir=1 ;;&
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue