From 6e5ea3aa65f94f7d7059aaa3ccc51e292d45dfff Mon Sep 17 00:00:00 2001 From: Владислав Date: Sat, 17 Apr 2021 10:56:46 +0300 Subject: Fix selecting language layout by name --- archinstall/lib/user_interaction.py | 3 +-- 1 file changed, 1 insertion(+), 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.") -- cgit v1.2.3-70-g09d2