mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-23 05:35:44 -05:00
chroot.mount_{ccache,rust}: use config.get_path() to resolve %cache_dir%
This commit is contained in:
parent
2757490a8f
commit
f705e39ca1
1 changed files with 2 additions and 2 deletions
|
@ -133,7 +133,7 @@ class BuildChroot(Chroot):
|
|||
)
|
||||
|
||||
def mount_ccache(self, user: str = 'kupfer', fail_if_mounted: bool = False):
|
||||
mount_source = os.path.join(config.file.paths.ccache, self.arch)
|
||||
mount_source = os.path.join(config.get_path('ccache'), self.arch)
|
||||
mount_dest = os.path.join(f'/home/{user}' if user != 'root' else '/root', '.ccache')
|
||||
uid = self.get_uid(user)
|
||||
makedir(mount_source, user=uid)
|
||||
|
@ -146,7 +146,7 @@ class BuildChroot(Chroot):
|
|||
def mount_rust(self, user: str = 'kupfer', fail_if_mounted: bool = False) -> list[str]:
|
||||
results = []
|
||||
uid = self.get_uid(user)
|
||||
mount_source_base = config.file.paths.rust # apparently arch-agnostic
|
||||
mount_source_base = config.get_path('rust') # apparently arch-agnostic
|
||||
for rust_dir in ['cargo', 'rustup']:
|
||||
mount_source = os.path.join(mount_source_base, rust_dir)
|
||||
mount_dest = os.path.join(f'/home/{user}' if user != 'root' else '/root', f'.{rust_dir}')
|
||||
|
|
Loading…
Add table
Reference in a new issue