diff options
-rw-r--r-- | src/cmd/build.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cmd/build.sh b/src/cmd/build.sh index a7b6701..87020ad 100644 --- a/src/cmd/build.sh +++ b/src/cmd/build.sh @@ -22,7 +22,7 @@ cmd_build_root= cmd_build_pkg_dir= cmd_build_build_deps= -cmd_build_make_deps_pkg() +_cmd_build_make_deps_pkg() { local pkg_dir= @@ -45,7 +45,7 @@ cmd_build_make_deps_pkg() rm -Rf -- "${pkg_dir}" } -cmd_build_fini() +_cmd_build_fini() { local session_dir= local f= @@ -134,22 +134,22 @@ cmd_build_main() fi package_set_substvars "${arch}" "${plat}" - if ! session_begin "${root}" "${cmd_build_pkg_dir}" cmd_build_fini false - then - cmd_build_fini + if ! session_begin "${root}" "${cmd_build_pkg_dir}" _cmd_build_fini \ + false; then + _cmd_build_fini [ "x${dev}" != 'x' ] && block_umount "${root}" return 2 fi cmd_build_build_deps="$(package_get_build_deps "${arch}" "${plat}")" if [ "x${cmd_build_build_deps}" != 'x' ]; then - cmd_build_make_deps_pkg + _cmd_build_make_deps_pkg session_exec opkg install ../builddeps.opk fi session_exec opkbuild "${@}" - cmd_build_fini + _cmd_build_fini session_end |