From faa93d9e24ec70c96dd516f41cc94950e5f8a611 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Thu, 6 Oct 2022 18:56:53 +0200 Subject: Improved speed in --skip-mirror-check (#1505) --- examples/guided.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/guided.py b/examples/guided.py index ad178207..eba78a1a 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -278,7 +278,7 @@ def perform_installation(mountpoint): archinstall.log(f"Disk states after installing: {archinstall.disk_layouts()}", level=logging.DEBUG) -if not (archinstall.check_mirror_reachable() or archinstall.arguments.get('skip-mirror-check', False)): +if archinstall.arguments.get('skip-mirror-check', False) is False and archinstall.check_mirror_reachable() is False: log_file = os.path.join(archinstall.storage.get('LOG_PATH', None), archinstall.storage.get('LOG_FILE', None)) archinstall.log(f"Arch Linux mirrors are not reachable. Please check your internet connection and the log file '{log_file}'.", level=logging.INFO, fg="red") exit(1) -- cgit v1.2.3-54-g00ecf