From c39e59892d1bddeae0c65504f841b274a337bc52 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 11 Feb 2010 23:28:02 +0100 Subject: make sure pacman cache dir exists --- mkarchroot | 1 + 1 file changed, 1 insertion(+) (limited to 'mkarchroot') diff --git a/mkarchroot b/mkarchroot index da56dae..b44ba92 100755 --- a/mkarchroot +++ b/mkarchroot @@ -81,6 +81,7 @@ chroot_mount () mount -o bind /dev "${working_dir}/dev" [ -e "${working_dir}/var/cache/pacman/pkg" ] || mkdir -p "${working_dir}/var/cache/pacman/pkg" + [ -e "${cache_dir}" ] || mkdir -p "${cache_dir}" mount -o bind "${cache_dir}" "${working_dir}/var/cache/pacman/pkg" trap 'chroot_umount' 0 1 2 15 -- cgit v1.2.3-70-g09d2