From ba333c616a902b9b74940f2faf0ded1366a77764 Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Sat, 16 Oct 2010 23:09:02 -0500 Subject: [PATCH] script/makepkg: debugging and testing --- script/makepkg | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/script/makepkg b/script/makepkg index 082dcbb..481c200 100755 --- a/script/makepkg +++ b/script/makepkg @@ -39,6 +39,9 @@ chprepare() { mkdir -p "$(dirname "${chroot_dir}")" || wtf "chroot path create failed" cp -pR "${seed_dir}" "${chroot_dir}" || wtf "chroot seeding failed" + # Create distfile cache + mkdir -p "${dist_dir}" || wtf "mkdir ${dist_dir} failed" + # Create mountpoint directories mkdir -p "${chroot_dir}/dev" || wtf "mkdir /dev failed" mkdir -p "${chroot_dir}/usr/src" || wtf "mkdir /usr/src failed" @@ -58,7 +61,7 @@ chprepare() { # Set up chroot mounts and runtime configuration chstartup() { - [ -d "${chroot_dir}" -a -a -f "${chroot_dir}/COPYRIGHT" -a -d "${chroot_dir}/dev" ] || wtf "Chroot not prepared" + [ -d "${chroot_dir}" -a -f "${chroot_dir}/COPYRIGHT" -a -d "${chroot_dir}/dev" ] || wtf "Chroot not prepared" meh "Starting up chroot" @@ -83,6 +86,7 @@ chshutdown() { meh "Shutting down chroot" umount "${chroot_dir}/var/ports/distfiles" umount "${chroot_dir}/usr/ports" + umount "${chroot_dir}/usr/src" umount "${chroot_dir}/dev" return 0 } @@ -269,6 +273,7 @@ port_fetch_recursive() { do meh "fetch-recursive ${1}" chmake "${1}" fetch-recursive + shift done } -- 2.42.0