summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/cmd/build.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/cmd/build.sh b/lib/cmd/build.sh
index 9c8cfb6..dca524d 100644
--- a/lib/cmd/build.sh
+++ b/lib/cmd/build.sh
@@ -102,8 +102,7 @@ cmd_build_main()
rand
dir="/prokit/build.${rand_x}"
uname_s="$( (uname -s) 2>/dev/null)" || uname_s='unknown'
- mkdir -p "${root}${dir}/pkg" "${root}${dir}/builddeps/control" \
- "${root}${dir}/builddeps/data"
+ mkdir -p "${root}${dir}/pkg"
case "${uname_s}" in
'Linux')
mount -o bind "${prev_arg}" "${root}${dir}/pkg"
@@ -112,6 +111,8 @@ cmd_build_main()
build_deps="$(package_get_build_deps "${arch}" "${plat}")"
if [ "x${build_deps}" != 'x' ]; then
+ mkdir -p "${root}${dir}/builddeps/control" \
+ "${root}${dir}/builddeps/data"
cmd_build_make_deps_pkg "${root}${dir}" "${rand_x}" \
"${build_deps}"
fi