summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-10-23 23:17:31 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-10-23 23:17:31 (EDT)
commit61a75a56f0f8e75de67c10319f363e305f3e2970 (patch)
treeb89745f5a34be4e27897d3b91e680fc5b8fb1a8f
parente5f49eb31fd010af3594e0a3227ff4c63ec32314 (diff)
Perform var substitutions on some control fields.
-rw-r--r--src/ob-gencontrol.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ob-gencontrol.sh b/src/ob-gencontrol.sh
index ee5741c..0526573 100644
--- a/src/ob-gencontrol.sh
+++ b/src/ob-gencontrol.sh
@@ -38,12 +38,15 @@ main()
gen_md5sums "src-${OPK_SOURCE}"
else
for pkg in ${OPK_PACKAGES}; do
+ ob_set_package_substvars "${pkg}"
arch="$(ob_get_binary_parameter "${pkg}" 'Architecture')"
[ "${arch}" != 'all' ] && arch="${OPK_HOST_ARCH}"
plat="$(ob_get_binary_parameter "${pkg}" 'Platform')"
[ "${plat}" != 'all' ] && plat="${OPK_HOST_PLAT}"
+ desc="$(ob_get_binary_parameter "${pkg}" 'Description')"
+ desc="$(ob_substvars "${desc}")"
gen_control "${pkg}" "${OPK_BINARY_VERSION}" "${arch}" "${plat}" \
- "$(ob_get_binary_parameter "${pkg}" 'Description')" 'true'
+ "${desc}" 'true'
install_maintainer_scripts "${pkg}"
gen_conffiles "${pkg}"
gen_md5sums "${pkg}"
@@ -110,10 +113,12 @@ EOF
'Depends'|'Recommends'|'Suggests'|'Pre-Depends')
value="$(ob_reduce_deps -a "${OPK_HOST_ARCH}" \
"${value}")"
+ value="$(ob_substvars "${value}")"
;;
'Conflicts'|'Provides'|'Replaces')
value="$(ob_reduce_deps -a "${OPK_HOST_ARCH}" -u \
"${value}")"
+ value="$(ob_substvars "${value}")"
;;
esac
printf '%s: %s\n' "${name}" "${value}" \