index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-11-05 15:48:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-05 15:48:03 +0000 |
commit | 0071a069080732047e11309134869f3ab40c642c (patch) | |
tree | 9ae4cde24f02046ccdc93a988c09273619cd545c /archinstall/lib/networking.py | |
parent | 3993917462219de75cd00aefdd4fe318402a22af (diff) | |
parent | b6ab6786316c5e4d8101007c4e96e64585aa7234 (diff) |
-rw-r--r-- | archinstall/lib/networking.py | 4 |
diff --git a/archinstall/lib/networking.py b/archinstall/lib/networking.py index ded5ebe6..0d94572a 100644 --- a/archinstall/lib/networking.py +++ b/archinstall/lib/networking.py @@ -4,7 +4,7 @@ import socket import struct from collections import OrderedDict -from .exceptions import * +from .exceptions import HardwareIncompatibilityError from .general import SysCommand from .output import log from .storage import storage @@ -30,7 +30,7 @@ def list_interfaces(skip_loopback=True): def check_mirror_reachable(): log("Testing connectivity to the Arch Linux mirrors ...", level=logging.INFO) - if (exit_code := SysCommand("pacman -Sy").exit_code) == 0: + if SysCommand("pacman -Sy").exit_code == 0: return True elif os.geteuid() != 0: log("check_mirror_reachable() uses 'pacman -Sy' which requires root.", level=logging.ERROR, fg="red") |