Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/networking.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib/networking.py')
-rw-r--r--archinstall/lib/networking.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/archinstall/lib/networking.py b/archinstall/lib/networking.py
index 2a086f39..fb26bd3d 100644
--- a/archinstall/lib/networking.py
+++ b/archinstall/lib/networking.py
@@ -8,7 +8,7 @@ from urllib.parse import urlencode
from urllib.request import urlopen
from .exceptions import SysCallError
-from .output import error, info, debug
+from .output import error, info
from .pacman import Pacman
@@ -32,19 +32,6 @@ def list_interfaces(skip_loopback :bool = True) -> Dict[str, str]:
return interfaces
-def check_mirror_reachable() -> bool:
- info("Testing connectivity to the Arch Linux mirrors...")
- try:
- Pacman.run("-Sy")
- return True
- except SysCallError as err:
- if os.geteuid() != 0:
- error("check_mirror_reachable() uses 'pacman -Sy' which requires root.")
- debug(f'exit_code: {err.exit_code}, Error: {err.message}')
-
- return False
-
-
def update_keyring() -> bool:
info("Updating archlinux-keyring ...")
try: