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:
parent
464932ee19
commit
86a03ae71a
1 changed files with 1 additions and 0 deletions
|
@ -98,6 +98,7 @@ set_build_options() {
|
||||||
|
|
||||||
for f in ${build_options}; do
|
for f in ${build_options}; do
|
||||||
_pkgname=${pkgname//\-/\_}
|
_pkgname=${pkgname//\-/\_}
|
||||||
|
_pkgname=${_pkgname//\+/\_}
|
||||||
eval pkgopts="\$XBPS_PKG_OPTIONS_${_pkgname}"
|
eval pkgopts="\$XBPS_PKG_OPTIONS_${_pkgname}"
|
||||||
if [ -z "$pkgopts" -o "$pkgopts" = "" ]; then
|
if [ -z "$pkgopts" -o "$pkgopts" = "" ]; then
|
||||||
pkgopts=${XBPS_PKG_OPTIONS}
|
pkgopts=${XBPS_PKG_OPTIONS}
|
||||||
|
|
Loading…
Reference in a new issue