Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-06-10 12:54:33 +0200
committerGitHub <noreply@github.com>2021-06-10 12:54:33 +0200
commitd3dddcf425238a70cb4811c50aa8f0d845f8cc39 (patch)
tree715b14961763242ef758aa8781a329360bce795c /archinstall
parent14aeb3b177dad2031cc4ec0d95d5e5d825a15014 (diff)
parent0563d307e84498d124a34638d04d3fd5bc09878c (diff)
Merge pull request #565 from dylanmtaylor/patch-1
Exit codes are an 8 bit value and could be 0 through 255
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/networking.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/archinstall/lib/networking.py b/archinstall/lib/networking.py
index 2c261334..49970ec4 100644
--- a/archinstall/lib/networking.py
+++ b/archinstall/lib/networking.py
@@ -31,9 +31,8 @@ def list_interfaces(skip_loopback=True):
def check_mirror_reachable():
if (exit_code := SysCommand("pacman -Sy").exit_code) == 0:
return True
- elif exit_code == 256:
- if os.geteuid() != 0:
- log("check_mirror_reachable() uses 'pacman -Sy' which requires root.", level=logging.ERROR, fg="red")
+ elif os.geteuid() != 0:
+ log("check_mirror_reachable() uses 'pacman -Sy' which requires root.", level=logging.ERROR, fg="red")
return False