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-05-16 14:02:49 +0000
committerGitHub <noreply@github.com>2021-05-16 14:02:49 +0000
commit9f14f2cc53c041051837815ff00907a1ae28c415 (patch)
tree0552659497437e3c814e6f26995b065c37ce5096 /archinstall
parent736d9f338dd259f02b92456e564d87b4a98cb838 (diff)
parent22fc18dc46cd605495175fc141029882b036ab4a (diff)
Merge pull request #456 from dylanmtaylor/patch-4
Add mirror reachability check
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/networking.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/archinstall/lib/networking.py b/archinstall/lib/networking.py
index b0c4b569..8a2f0edd 100644
--- a/archinstall/lib/networking.py
+++ b/archinstall/lib/networking.py
@@ -26,6 +26,14 @@ def list_interfaces(skip_loopback=True):
return interfaces
+def check_mirror_reachable():
+ try:
+ check = SysCommand("pacman -Sy")
+ return check.exit_code == 0
+ except:
+ return False
+
+
def enrich_iface_types(interfaces: dict):
result = {}
for iface in interfaces: