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:
committed by
Juan RP
parent
464932ee19
commit
86a03ae71a
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user