index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Daniel Girtler <blackrabbit256@gmail.com> | 2023-05-15 17:16:18 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-15 09:16:18 +0200 |
commit | 8a292a163ea2e643a8ac5d4cfada8a27076de630 (patch) | |
tree | 03a5f75f8da5b438c4cbccbd29544fe352a316ce /archinstall/__init__.py | |
parent | d65359896a60dc57eb9f18c86f692c9eced7f644 (diff) |
-rw-r--r-- | archinstall/__init__.py | 8 |
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) |