diff options
Diffstat (limited to 'src/cmd/build.sh')
-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 a366a01..1d0ad52 100644 --- a/src/cmd/build.sh +++ b/src/cmd/build.sh @@ -88,7 +88,12 @@ cmd_build_main() fi package_set_substvars "${arch}" "${plat}" - session_begin "${root}" "${cmd_build_pkg_dir}" cmd_build_fini false + 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 |