Skip to content
Snippets Groups Projects
Commit 9974309c authored by Dave Reisner's avatar Dave Reisner Committed by Pierre Schmitz
Browse files

makechrootpkg: Look harder for -R argument


We shouldn't be in the business of reparsing makepkg's arguments, but
since we have to treat the case of repackaging separately, do a better
job of trying to find signs of it happening. This change lets you pass
the longopt, --repackage, or multiple shortopts such as -RA, and still
get the intended effect.

Signed-off-by: default avatarDave Reisner <dreisner@archlinux.org>
Signed-off-by: default avatarPierre Schmitz <pierre@archlinux.de>
parent e3cf64ad
No related branches found
No related tags found
No related merge requests found
...@@ -104,11 +104,13 @@ fi ...@@ -104,11 +104,13 @@ fi
makepkg_args="$makepkg_args ${*:$OPTIND}" makepkg_args="$makepkg_args ${*:$OPTIND}"
# See if -R was passed to makepkg # See if -R was passed to makepkg
for arg in ${*:$OPTIND}; do for arg in "${@:OPTIND}"; do
if [[ $arg = -R ]]; then case ${arg%%=*} in
repack=true -*R*|--repackage)
break repack=true
fi break 2
;;
esac
done done
if [[ -n $SUDO_USER ]]; then if [[ -n $SUDO_USER ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment