summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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