generator.generate_pacman_conf_body(): add in_chroot=False param to use config.get_path('pacman') if necessary

This commit is contained in:
InsanePrawn 2022-08-23 21:41:41 +02:00
parent 5a794ba3dd
commit 3952892029
5 changed files with 10 additions and 5 deletions

View file

@ -37,7 +37,7 @@ class Distro:
extras = [Repo(name, url_template=info.url_template, arch=self.arch, options=info.options, scan=False) for name, info in extra_repos.items()]
return '\n\n'.join(repo.config_snippet() for repo in (extras + list(self.repos.values())))
def get_pacman_conf(self, extra_repos: Mapping[str, RepoInfo] = {}, check_space: bool = True):
def get_pacman_conf(self, extra_repos: Mapping[str, RepoInfo] = {}, check_space: bool = True, in_chroot: bool = True):
body = generate_pacman_conf_body(self.arch, check_space=check_space)
return body + self.repos_config_snippet(extra_repos)