Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/__init__.py')
-rw-r--r--archinstall/__init__.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/archinstall/__init__.py b/archinstall/__init__.py
index 992bd9fa..e6fcb267 100644
--- a/archinstall/__init__.py
+++ b/archinstall/__init__.py
@@ -225,12 +225,8 @@ def load_config():
if profile_config := arguments.get('profile_config', None):
arguments['profile_config'] = profile.ProfileConfiguration.parse_arg(profile_config)
- if arguments.get('mirror-region', None) is not None:
- if type(arguments.get('mirror-region', None)) is dict:
- arguments['mirror-region'] = arguments.get('mirror-region', None)
- else:
- selected_region = arguments.get('mirror-region', None)
- arguments['mirror-region'] = {selected_region: mirrors.list_mirrors()[selected_region]}
+ if mirror_config := arguments.get('mirror_config', None):
+ arguments['mirror_config'] = mirrors.MirrorConfiguration.parse_args(mirror_config)
if arguments.get('servers', None) is not None:
storage['_selected_servers'] = arguments.get('servers', None)