Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2022-06-02 13:32:42 +0200
committerGitHub <noreply@github.com>2022-06-02 13:32:42 +0200
commit7943dd82365fd9fb5034a0f1c05de3ccabda468a (patch)
tree5e006c48d6f39d6f551aa441de6a386153ab2364 /examples
parentc2be07e7dc543fd6c5b60e67153061b2136b8575 (diff)
Added more offline functionality, such as skipping package search (#1296)
* Added more offline functionality, such as skipping package search * Disabled list_mirrors() from going online if --offline is given. Defaults to /etc/pacman.d/mirrorlist instead. * Forgot import of pathlib * Made list_mirrors() open /etc/pacman.d/mirrorlist in byte mode to better emulate the result of urllib response reading. * Forgot variable declaration * Made list_mirrors include activated server definitions
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 635baf6a..8693b98f 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -274,7 +274,7 @@ if not (archinstall.check_mirror_reachable() or archinstall.arguments.get('skip-
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)
-if not archinstall.arguments.get('offline', False):
+if not archinstall.arguments['offline']:
latest_version_archlinux_keyring = max([k.pkg_version for k in archinstall.find_package('archlinux-keyring')])
# If we want to check for keyring updates