From e39e8014a9e4f417be850984317332799876c7a8 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Mon, 16 Mar 2020 21:15:50 +0100 Subject: More debugging --- archinstall.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'archinstall.py') diff --git a/archinstall.py b/archinstall.py index 9e2b30c1..1951d992 100644 --- a/archinstall.py +++ b/archinstall.py @@ -971,8 +971,9 @@ def mount_mountpoints(drive, bootpartition, mountpoint='/mnt', *positionals, **k return True def re_rank_mirrors(top=10, *positionals, **kwargs): - if sys_command((f'/usr/bin/rankmirrors -n {top} /etc/pacman.d/mirrorlist > /etc/pacman.d/mirrorlist')).exit_code == 0: + if (cmd := sys_command((f'/usr/bin/rankmirrors -n {top} /etc/pacman.d/mirrorlist > /etc/pacman.d/mirrorlist'))).exit_code == 0: return True + log(f"Could not re-rank mirrors: {cmd.trace_log}", level=3, origin='re_rank_mirrors') return False def filter_mirrors_by_country_list(countries, top=None, *positionals, **kwargs): -- cgit v1.2.3-70-g09d2