From bbec2d8060cec658f3fef64f13b6a37790c9f997 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 02 Oct 2012 23:00:12 -0400 Subject: Fix format of package metadata cache file. --- 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 -- cgit v0.9.1