Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples/guided.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-03-09 14:09:17 +0100
committerAnton Hvornum <anton.feeds@gmail.com>2021-03-09 14:09:17 +0100
commit1167cf589b65e121b8b3322980a83ddba2043b57 (patch)
treed9d4d20281dfc2f32a4aa6b7f84a34856352a179 /examples/guided.py
parentcf21b477640ec284f1355140694d22a2c9a21ac3 (diff)
Fixed mirror-region parameter selection. Converting to actual mirrors.
Diffstat (limited to 'examples/guided.py')
-rw-r--r--examples/guided.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 55643933..08ad70d9 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -88,6 +88,10 @@ if len(archinstall.arguments['keyboard-language']):
# Set which region to download packages from during the installation
if not archinstall.arguments.get('mirror-region', None):
archinstall.arguments['mirror-region'] = archinstall.select_mirror_regions(archinstall.list_mirrors())
+else:
+ selected_region = archinstall.arguments['mirror-region']
+ archinstall.arguments['mirror-region'] = {selected_region : archinstall.list_mirrors()[selected_region]}
+
# Ask which harddrive/block-device we will install to
if archinstall.arguments.get('harddrive', None):