Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2019-11-19 00:26:00 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2019-11-19 00:26:00 +0000
commitfcdafd22e1ca2a51f3f9583f68fd02f2786f13e2 (patch)
tree117840a652d56b66b6408a7be9d52eb12cbfb5f8
parenta543c2033c1e27ffa57b9762c63f792d6c2b451f (diff)
debug
-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):