config/multithreaded: install embedded addons too during addon build

This commit is contained in:
MilhouseVH 2019-02-13 15:10:54 +00:00
parent ab67ec7ccc
commit 85da96229f

View File

@ -53,7 +53,7 @@ export -f json_worker
package_worker() {
local slot=$1 job=$2 jobs=$3 args="$4"
local task pkgname result status
local addon istarget
local addon istarget isaddon
export MTJOBID=${slot} MTMAXJOBS=${jobs}
@ -67,7 +67,9 @@ package_worker() {
[[ ${pkgname} =~ :target$ || "${pkgname//:/}" = "${pkgname}" ]] && istarget="yes" || istarget="no"
if [ "${MTADDONBUILD}" = "yes" -a "${PKG_IS_ADDON}" = "yes" -a "${istarget}" = "yes" ]; then
[[ "${MTADDONBUILD}" = "yes" && ( "${PKG_IS_ADDON}" = "yes" || "${PKG_IS_ADDON}" = "embedded" ) ]] && isaddon="yes" || isaddon="no"
if [ "${isaddon}" = "yes" -a "${istarget}" = "yes" ]; then
if [ ${result} -eq 0 ]; then
(
pkg_lock "${pkgname}" "packadd"