summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-10-22 17:53:16 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-10-22 17:53:16 (EDT)
commitcd8d946a86d0730244badfc79c18c6f3e914ee62 (patch)
tree06f2faaac679e7dbd52ab810fe04c52ad8053541 /src
parent4f35b5dbe2f7f55b9008d72e96cb3884eb3d3996 (diff)
Reduce binary package dependency fields.
Diffstat (limited to 'src')
-rw-r--r--src/ob-gencontrol.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ob-gencontrol.sh b/src/ob-gencontrol.sh
index ee68916..ee5741c 100644
--- a/src/ob-gencontrol.sh
+++ b/src/ob-gencontrol.sh
@@ -104,6 +104,18 @@ EOF
Conflicts Provides Replaces; do
value="$(ob_get_binary_parameter "${binary}" "${name}")"
if [ -n "${value}" ]; then
+ case "${name}" in
+ 'Essential')
+ ;;
+ 'Depends'|'Recommends'|'Suggests'|'Pre-Depends')
+ value="$(ob_reduce_deps -a "${OPK_HOST_ARCH}" \
+ "${value}")"
+ ;;
+ 'Conflicts'|'Provides'|'Replaces')
+ value="$(ob_reduce_deps -a "${OPK_HOST_ARCH}" -u \
+ "${value}")"
+ ;;
+ esac
printf '%s: %s\n' "${name}" "${value}" \
>>"${binary}.control/control"
fi