diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/build.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmd/build.sh b/src/cmd/build.sh index 5151c46..d12edfb 100644 --- a/src/cmd/build.sh +++ b/src/cmd/build.sh @@ -80,7 +80,10 @@ cmd_build_main() [ "x${dev}" != 'x' ] && block_umount "${root}" return 2 fi - package_init "${cmd_build_pkg_dir}" + if ! package_init "${cmd_build_pkg_dir}"; then + [ "x${dev}" != 'x' ] && block_umount "${root}" + return 2 + fi package_set_substvars "${arch}" "${plat}" session_begin "${root}" "${cmd_build_pkg_dir}" cmd_build_fini false |