index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-09-06 14:26:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-06 14:26:30 +0200 |
commit | 05c923524be91f2031855fce6fca6252ea21e444 (patch) | |
tree | 0c1f7f6b18b4e3e89dd22feb67b3d00db3e12b36 /archinstall/lib/mirrors.py | |
parent | 025dc83194d2bfc0bde73681abf5d280c745806d (diff) | |
parent | 3d4f58a04e06ef4bdd023effc52d4cb33b49080c (diff) |
-rw-r--r-- | archinstall/lib/mirrors.py | 4 |
diff --git a/archinstall/lib/mirrors.py b/archinstall/lib/mirrors.py index 95fb5ac6..1b62a61b 100644 --- a/archinstall/lib/mirrors.py +++ b/archinstall/lib/mirrors.py @@ -59,9 +59,7 @@ def filter_mirrors_by_region(regions, destination='/etc/pacman.d/mirrorlist', so :param regions: A series of country codes separated by `,`. For instance `SE,US` for sweden and United States. :type regions: str """ - region_list = [] - for region in regions.split(','): - region_list.append(f'country={region}') + region_list = [f'country={region}' for region in regions.split(',')] response = urllib.request.urlopen(urllib.request.Request(f"https://archlinux.org/mirrorlist/?{'&'.join(region_list)}&protocol=https&protocol=http&ip_version=4&ip_version=6&use_mirror_status=on'", headers={'User-Agent': 'ArchInstall'})) new_list = response.read().replace(b"#Server", b"Server") |