summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-10-02 23:00:12 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-10-02 23:00:12 (EDT)
commitbbec2d8060cec658f3fef64f13b6a37790c9f997 (patch)
treef666a9a162f40a0b8f5a5ecf841bc55e497e622c /lib
parent762c2493f90f1165e56973a9445b20f9ad33612a (diff)
Fix format of package metadata cache file.
Diffstat (limited to 'lib')
-rw-r--r--lib/package.sh11
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