diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/package.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/package.sh b/lib/package.sh index bb1b1a0..c045d24 100644 --- a/lib/package.sh +++ b/lib/package.sh @@ -107,16 +107,19 @@ ob_parse_package_metadata() for _obppm_param_name in ${_OB_SOURCE_PARAMETERS}; do _obppm_param_value="$(ob_get_source_parameter \ "${_obppm_param_name}" | sed "s/'/'\\\\''/g")" - printf "%s='%s'" \ - "${_obppm_param_name}" "${_obppm_param_value}" \ + printf "%s='%s'\n" \ + "_OB_SRCFIELD_${_obppm_param_name}" "${_obppm_param_value}" \ >>"${_obppm_cache_file}" done for _obppm_pkg in $(ob_get_binary_packages); do for _obppm_param_name in ${_OB_BINARY_PARAMETERS}; do _obppm_param_value="$(ob_get_binary_parameter "${_obppm_pkg}" \ "${_obppm_param_name}" | sed "s/'/'\\\\''/g")" - printf "%s='%s'" \ - "${_obppm_param_name}" "${_obppm_param_value}" \ + _obppm_pkg="$(echo "${_obppm_pkg}" | tr 'a-z' 'A-Z' | \ + tr -dC 'A-Z0-9')" + printf "%s='%s'\n" \ + "_OB_BINFIELD_${_obppm_pkg}_${_obppm_param_name}" \ + "${_obppm_param_value}" \ >>"${_obppm_cache_file}" done done |