diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 4e52ba80..6ccdaf95 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -836,13 +836,13 @@ class Installer: pacman_conf = pacman.Config(self.target) if multilib: info("The multilib flag is set. This system will be installed with the multilib repository enabled.") - pacman_conf.enable(pacman.Repo.Multilib) + pacman_conf.enable(pacman.Repo.MULTILIB) else: info("The multilib flag is not set. This system will be installed without multilib repositories enabled.") if testing: info("The testing flag is set. This system will be installed with testing repositories enabled.") - pacman_conf.enable(pacman.Repo.Testing) + pacman_conf.enable(pacman.Repo.TESTING) else: info("The testing flag is not set. This system will be installed without testing repositories enabled.") diff --git a/archinstall/lib/pacman/config.py b/archinstall/lib/pacman/config.py index 40997189..4aecd3a0 100644 --- a/archinstall/lib/pacman/config.py +++ b/archinstall/lib/pacman/config.py @@ -18,13 +18,13 @@ class Config: if not self.repos: return - if Repo.Testing in self.repos: - if Repo.Multilib in self.repos: - repos_pattern = f'({Repo.Multilib.value}|.+-{Repo.Testing.value})' + if Repo.TESTING in self.repos: + if Repo.MULTILIB in self.repos: + repos_pattern = f'({Repo.MULTILIB.value}|.+-{Repo.TESTING.value})' else: - repos_pattern = f'(?!{Repo.Multilib.value}).+-{Repo.Testing.value}' + repos_pattern = f'(?!{Repo.MULTILIB.value}).+-{Repo.TESTING.value}' else: - repos_pattern = Repo.Multilib.value + repos_pattern = Repo.MULTILIB.value pattern = re.compile(rf"^#\s*\[{repos_pattern}\]$") diff --git a/archinstall/lib/pacman/repo.py b/archinstall/lib/pacman/repo.py index 4ccfe011..f8fec718 100644 --- a/archinstall/lib/pacman/repo.py +++ b/archinstall/lib/pacman/repo.py @@ -2,5 +2,5 @@ from enum import Enum class Repo(Enum): - Multilib = "multilib" - Testing = "testing" + MULTILIB = "multilib" + TESTING = "testing"