summaryrefslogtreecommitdiffstats
path: root/src/opkbuild.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/opkbuild.sh')
-rw-r--r--src/opkbuild.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/opkbuild.sh b/src/opkbuild.sh
index 3347b7f..0535095 100644
--- a/src/opkbuild.sh
+++ b/src/opkbuild.sh
@@ -265,8 +265,8 @@ setup_source_control()
oh_control_parse_source
for field in ${OH_CONTROL_SOURCE_FIELDS_REQUIRED} \
${OH_CONTROL_SOURCE_FIELDS_OPTIONAL}; do
- param="OH_CONTROL_SOURCE_FIELD_$(LC_CTYPE=C \
- tr '[:lower:]-' '[:upper:]_')"
+ param="OH_CONTROL_SOURCE_FIELD_$(echo "${field}" | \
+ LC_CTYPE=C tr '[:lower:]-' '[:upper:]_')"
oh_pv_set 'src:.control' "${field}" "$(eval echo \$\{"${param}"\})"
done
}
@@ -405,8 +405,8 @@ step_bincontrol()
oh_control_parse_binary "${pkg}"
for field in ${OH_CONTROL_BINARY_FIELDS_REQUIRED} \
${OH_CONTROL_BINARY_FIELDS_OPTIONAL}; do
- param="OH_CONTROL_BINARY_FIELD_$(LC_CTYPE=C \
- tr '[:lower:]-' '[:upper:]_')"
+ param="OH_CONTROL_BINARY_FIELD_$(echo "${field}" | \
+ LC_CTYPE=C tr '[:lower:]-' '[:upper:]_')"
oh_pv_set "${pkg}.control" \
"${field}" "$(eval echo \$\{"${param}"\})"
done