Skip to content

Commit b9b8225

Browse files
committed
pacman/repo: update enum members to uppercase
1 parent f1f08c8 commit b9b8225

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

archinstall/lib/installer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -836,13 +836,13 @@ def minimal_installation(
836836
pacman_conf = pacman.Config(self.target)
837837
if multilib:
838838
info("The multilib flag is set. This system will be installed with the multilib repository enabled.")
839-
pacman_conf.enable(pacman.Repo.Multilib)
839+
pacman_conf.enable(pacman.Repo.MULTILIB)
840840
else:
841841
info("The multilib flag is not set. This system will be installed without multilib repositories enabled.")
842842

843843
if testing:
844844
info("The testing flag is set. This system will be installed with testing repositories enabled.")
845-
pacman_conf.enable(pacman.Repo.Testing)
845+
pacman_conf.enable(pacman.Repo.TESTING)
846846
else:
847847
info("The testing flag is not set. This system will be installed without testing repositories enabled.")
848848

archinstall/lib/pacman/config.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ def apply(self) -> None:
1818
if not self.repos:
1919
return
2020

21-
if Repo.Testing in self.repos:
22-
if Repo.Multilib in self.repos:
23-
repos_pattern = f'({Repo.Multilib.value}|.+-{Repo.Testing.value})'
21+
if Repo.TESTING in self.repos:
22+
if Repo.MULTILIB in self.repos:
23+
repos_pattern = f'({Repo.MULTILIB.value}|.+-{Repo.TESTING.value})'
2424
else:
25-
repos_pattern = f'(?!{Repo.Multilib.value}).+-{Repo.Testing.value}'
25+
repos_pattern = f'(?!{Repo.MULTILIB.value}).+-{Repo.TESTING.value}'
2626
else:
27-
repos_pattern = Repo.Multilib.value
27+
repos_pattern = Repo.MULTILIB.value
2828

2929
pattern = re.compile(rf"^#\s*\[{repos_pattern}\]$")
3030

archinstall/lib/pacman/repo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33

44
class Repo(Enum):
5-
Multilib = "multilib"
6-
Testing = "testing"
5+
MULTILIB = "multilib"
6+
TESTING = "testing"

0 commit comments

Comments
 (0)