index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Yash Tripathi <tripathiyash97@gmail.com> | 2021-05-28 08:44:28 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-28 08:44:28 +0530 |
commit | c3c55f59928a6b07739114aa4e25713051bbbcca (patch) | |
tree | c15982f014cd57516a1e7e559646d526b794ec57 | |
parent | 04e58f98fac6a3834d3ce60f3a13f0bb980b165e (diff) |
-rw-r--r-- | examples/guided.py | 7 |
diff --git a/examples/guided.py b/examples/guided.py index 320bcfd8..b26887a5 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -448,8 +448,11 @@ else: else: archinstall.arguments['profile'] = None if archinstall.arguments.get('mirror-region', None) is not None: - selected_region = archinstall.arguments.get('mirror-region', None) - archinstall.arguments['mirror-region'] = {selected_region: archinstall.list_mirrors()[selected_region]} + if type(archinstall.arguments.get('mirror-region', None)) is dict: + archinstall.arguments['mirror-region'] = archinstall.arguments.get('mirror-region', None) + else: + selected_region = archinstall.arguments.get('mirror-region', None) + archinstall.arguments['mirror-region'] = {selected_region: archinstall.list_mirrors()[selected_region]} archinstall.arguments['sys-language'] = archinstall.arguments.get('sys-language', 'en_US') archinstall.arguments['sys-encoding'] = archinstall.arguments.get('sys-encoding', 'utf-8') if archinstall.arguments.get('gfx_driver', None) is not None: |