Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archinstall.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/archinstall.py b/archinstall.py
index ec371dee..26603be8 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -885,6 +885,9 @@ def mount_mountpoints(drive, bootpartition, mountpoint='/mnt/boot', *positionals
mount_boot(drive, bootpartition, mountpoint='/mnt/boot', *positionals, **kwargs)
return True
+def re_rank_mirrors(top=10, *positionals, **kwargs)
+ o = simple_command('/usr/bin/rankmirrors -n {top} /root/mirrorlist > /etc/pacman.d/mirrorlist')
+
def filter_mirrors_by_country(countries, top=10, *positionals, **kwargs):
## TODO: replace wget with urllib.request (no point in calling syscommand)
country_list = []
@@ -892,7 +895,7 @@ def filter_mirrors_by_country(countries, top=10, *positionals, **kwargs):
country_list.append(f'country={country}')
o = simple_command(f"/usr/bin/wget 'https://www.archlinux.org/mirrorlist/?{'&'.join(country_list)}&protocol=https&ip_version=4&ip_version=6&use_mirror_status=on' -O /root/mirrorlist")
o = simple_command("/usr/bin/sed -i 's/#Server/Server/' /root/mirrorlist")
- o = simple_command('/usr/bin/rankmirrors -n {top} /root/mirrorlist > /etc/pacman.d/mirrorlist')
+ re_rank_mirrors(top, *positionals, **kwargs)
return True
def strap_in_base(*positionals, **kwargs):