Fix handling of package options in packages with '+' character in name. (#5385)

Substitute '+' character with '_', because eval treats '+' character
as not a part of variable name.
This commit is contained in:
Hadrian Węgrzynowski 2016-12-24 09:43:30 +01:00 committed by Juan RP
parent 464932ee19
commit 86a03ae71a
1 changed files with 1 additions and 0 deletions

View File

@ -98,6 +98,7 @@ set_build_options() {
for f in ${build_options}; do
_pkgname=${pkgname//\-/\_}
_pkgname=${_pkgname//\+/\_}
eval pkgopts="\$XBPS_PKG_OPTIONS_${_pkgname}"
if [ -z "$pkgopts" -o "$pkgopts" = "" ]; then
pkgopts=${XBPS_PKG_OPTIONS}