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:
authorDaniel Girtler <blackrabbit256@gmail.com>2023-05-15 17:16:18 +1000
committerGitHub <noreply@github.com>2023-05-15 09:16:18 +0200
commit8a292a163ea2e643a8ac5d4cfada8a27076de630 (patch)
tree03a5f75f8da5b438c4cbccbd29544fe352a316ce /archinstall/__init__.py
parentd65359896a60dc57eb9f18c86f692c9eced7f644 (diff)
Add custom mirror support (#1816)
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
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)