From cd8d946a86d0730244badfc79c18c6f3e914ee62 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 22 Oct 2012 17:53:16 -0400 Subject: Reduce binary package dependency fields. --- 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 -- cgit v0.9.1