Skip to content

Commit

Permalink
ShellScriptlets: Fix meson setup command
Browse files Browse the repository at this point in the history
Put --wrap-mode=nodownload at the end of the arguments list, to
avoid conflicting with the meson setup command. To allow recipes
to override, only use it when wrap-mode isn't in the arguments.
Fixes haikuports#249.
  • Loading branch information
robxnano committed Mar 25, 2023
1 parent adc25c2 commit 616f713
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion HaikuPorter/ShellScriptlets.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,11 @@ def getShellVariableSetters(shellVariables):
MESON=$(which meson)
fi
$MESON --wrap-mode=nodownload "$@"
if [[ "$1" == setup && "$*" != *wrap-mode* ]]; then
$MESON "$@" --wrap-mode=nodownload
else
$MESON "$@"
fi
}
fixDevelopLibDirReferences()
Expand Down

0 comments on commit 616f713

Please sign in to comment.