Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel <blackrabbit256@gmail.com>2022-01-01 01:36:05 +1100
committerGitHub <noreply@github.com>2021-12-31 15:36:05 +0100
commit638a05243c7bab7db7449c24a2ab770e581244d0 (patch)
tree80739b60cd940ce75a6edfafe994b154255b347b
parent7f9b7991e902489efb3501a98a7d6998ca15a0a5 (diff)
Enable multiple mirror selection #457 (#809)
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
-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 {}