diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-02-11 23:28:02 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-02-11 23:28:02 +0100 |
commit | c39e59892d1bddeae0c65504f841b274a337bc52 (patch) | |
tree | 0574e4f9a7f55587678774288591da7c0ac4ad9f | |
parent | f76261f073b0403d3dc8efadca3938f099e46beb (diff) | |
download | devtools-c39e59892d1bddeae0c65504f841b274a337bc52.tar.gz devtools-c39e59892d1bddeae0c65504f841b274a337bc52.tar.xz |
make sure pacman cache dir exists
-rwxr-xr-x | mkarchroot | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |