Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-04-17 08:03:45 +0000
committerGitHub <noreply@github.com>2021-04-17 08:03:45 +0000
commit7be93adb99bd9b534874e29b05adc1e39d98b647 (patch)
tree878e15407afde43aaba077f11714fb3dab60c6be
parent407290b03483ebed95e5f02c6b60024bd331ba1d (diff)
parent6e5ea3aa65f94f7d7059aaa3ccc51e292d45dfff (diff)
Merge pull request #320 from SecondThundeR/language-select-fix
Fix selecting language layout by name
-rw-r--r--archinstall/lib/user_interaction.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index df8668af..10df6755 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -358,8 +358,7 @@ def select_language(options, show_only_country_codes=True):
# all possible language layouts, and we might want to write
# for instance sv-latin1 (if we know that exists) without having to
# go through the search step.
- elif selected_language in options:
- selected_language = options[options.index(selected_language)]
+ elif selected_language in languages:
return selected_language
else:
raise RequirementError("Selected language does not exist.")