Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples/guided.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2022-10-06 18:56:53 +0200
committerGitHub <noreply@github.com>2022-10-06 18:56:53 +0200
commitfaa93d9e24ec70c96dd516f41cc94950e5f8a611 (patch)
tree01508d25130cd639d5d0861a8e1e66b3828b384b /examples/guided.py
parent977976f88e761ced7d5bc9f39b32e2296ee91806 (diff)
Improved speed in --skip-mirror-check (#1505)
Diffstat (limited to 'examples/guided.py')
-rw-r--r--examples/guided.py2
1 files changed, 1 insertions, 1 deletions
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)