Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archinstall/lib/user_interaction.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index 2314b762..6298db19 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -797,13 +797,15 @@ def select_mirror_regions():
:rtype: dict
"""
- # TODO: Support multiple options and country codes, SE,UK for instance.
-
mirrors = list_mirrors()
- selected_mirror = Menu('Select one of the regions to download packages from', mirrors.keys()).run()
+ selected_mirror = Menu(
+ 'Select one of the regions to download packages from',
+ mirrors.keys(),
+ multi=True
+ ).run()
if selected_mirror is not None:
- return {selected_mirror: mirrors[selected_mirror]}
+ return {selected: mirrors[selected] for selected in selected_mirror}
return {}