diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/build.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cmd/build.sh b/src/cmd/build.sh index 87020ad..48503b7 100644 --- a/src/cmd/build.sh +++ b/src/cmd/build.sh @@ -144,7 +144,12 @@ cmd_build_main() cmd_build_build_deps="$(package_get_build_deps "${arch}" "${plat}")" if [ "x${cmd_build_build_deps}" != 'x' ]; then _cmd_build_make_deps_pkg - session_exec opkg install ../builddeps.opk + if session_exec opkg -a "${arch}" print-architecture \ + 1>/dev/null 2>&1; then + session_exec opkg -a "${arch}" install ../builddeps.opk + else + session_exec opkg install ../builddeps.opk + fi fi session_exec opkbuild "${@}" |