mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-23 05:35:44 -05:00
Create pacman cache dir if it does not exist
This commit is contained in:
parent
5f67435570
commit
a8695f0095
1 changed files with 2 additions and 0 deletions
|
@ -207,6 +207,8 @@ def mount_relative(chroot_path: str, absolute_source: str, relative_target: str)
|
|||
|
||||
def mount_pacman_cache(chroot_path: str, arch: str) -> str:
|
||||
global_cache = os.path.join(config.get_path('pacman'), arch)
|
||||
if not os.path.exists(global_cache):
|
||||
os.makedirs(global_cache)
|
||||
relative = os.path.join('var', 'cache', 'pacman', arch)
|
||||
result, absolute = mount_relative(chroot_path, global_cache, relative)
|
||||
if result.returncode != 0:
|
||||
|
|
Loading…
Add table
Reference in a new issue