xbps-src: fix per pkg options declared in etc/conf (close #973).

This commit is contained in:
Juan RP 2015-02-16 10:48:21 +01:00
parent cdc733d3bb
commit f38c8ba711

View file

@ -79,8 +79,8 @@ msg_normal_append() {
} }
set_build_options() { set_build_options() {
local f j opt optval _optsset pkgopts local f j opt optval _optsset pkgopts _pkgname
local -A options _pkgname local -A options
if [ -z "$build_options" ]; then if [ -z "$build_options" ]; then
return 0 return 0
@ -118,7 +118,7 @@ set_build_options() {
for f in ${!options[@]}; do for f in ${!options[@]}; do
optval=${options[$f]} optval=${options[$f]}
if [[ $optval -eq 1 ]]; then if [[ $optval -eq 1 ]]; then
eval build_option_${f}=1 eval export build_option_${f}=1
fi fi
done done