makechrootpkg: Also look for -e as --noextract

This commit is contained in:
Jan Alexander Steffens (heftig) 2017-08-24 17:07:23 +02:00
parent d0e684d2e9
commit bd826752c9
No known key found for this signature in database
GPG Key ID: A5E9288C4FA415FA
1 changed files with 6 additions and 6 deletions

View File

@ -356,13 +356,13 @@ main() {
# Pass all arguments after -- right to makepkg # Pass all arguments after -- right to makepkg
makepkg_args+=("${@:$OPTIND}") makepkg_args+=("${@:$OPTIND}")
# See if -R was passed to makepkg # See if -R or -e was passed to makepkg
for arg in "${@:OPTIND}"; do for arg in "${makepkg_args[@]}"; do
case ${arg%%=*} in case ${arg%%=*} in
-*R*|--repackage|--noextract) --repackage|--noextract) keepbuilddir=true; break ;;
keepbuilddir=true --repackage|--noextract) keepbuilddir=true; break ;;
break 2 --*) ;;
;; -*R*|-*e*) keepbuilddir=true; break ;;
esac esac
done done