diff --git a/chroot/build.py b/chroot/build.py index 1ecdc2d..aaf9968 100644 --- a/chroot/build.py +++ b/chroot/build.py @@ -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}')