make sure pacman cache dir exists

This commit is contained in:
Pierre Schmitz 2010-02-11 23:28:02 +01:00
parent f76261f073
commit c39e59892d
1 changed files with 1 additions and 0 deletions

View File

@ -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