Remove redundant cache_dirs, fix read only cache_dirs issue
Created by: bartoszek
Fix #57
- compartmentalize
cache_dirs
-
cache_dirs
contains cached directly sourced from$pac_conf
file withpacconf CacheDir
-
extra_cache_dirs
contains caches form host mirrors and local repositories - filter out
extra_cache_dirs
fromcache_dirs
preventing using local repository as pacman cache if listed first inpacman.conf
-
- instead of inserting caches into each
CacheDir=
line in$working_dir/etc/pacman.conf
on eacharch-nspawn
call, append new[options]
section containingCacheDir=${extra_cache_dirs[*]}
to$working_dir/etc/pacman.conf
when$working_dir/etc/pacman.conf
gets overwritten (arch-nspawn -C pacman.conf
)