Skip to content

makechrootpkg: fix short option handling for makepkg_args

Mike Yuan requested to merge (removed):master into master

Current method of using globs to match args can't handle multiple short options passed as a single argument. To fix this, let's use getopts to parse short options instead.

Currently, when multiple short options are passed as a single argument, only the one that matchs the first case statement will be parsed. This shall be fixed by using switch-case resume.

Fixes https://github.com/Morganamilo/paru/issues/859

Edited by Mike Yuan

Merge request reports