From 61a75a56f0f8e75de67c10319f363e305f3e2970 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 23 Oct 2012 23:17:31 -0400 Subject: Perform var substitutions on some control fields. --- (limited to 'src') 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}" \ -- cgit v0.9.1