From cb95846fb537eeb9c8ffe8416fe0916bcd6176a9 Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Sun, 8 May 2022 17:45:53 +0200 Subject: [PATCH] distro: put extra_repos before core repos in pacman.conf --- distro/distro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distro/distro.py b/distro/distro.py index 49c57bb..3d0b955 100644 --- a/distro/distro.py +++ b/distro/distro.py @@ -35,7 +35,7 @@ class Distro: def repos_config_snippet(self, extra_repos: Mapping[str, RepoInfo] = {}) -> str: 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 (list(self.repos.values()) + extras)) + 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): body = generate_pacman_conf_body(self.arch, check_space=check_space)