Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorTimothy Pidashev <pidashev.tim@gmail.com>2022-01-30 02:01:04 -0800
committerGitHub <noreply@github.com>2022-01-30 11:01:04 +0100
commit179c103cddf930b91ffa82a9feee37c7f2487ed8 (patch)
tree6965d69447711fe5df929cccbc8929653fa53049 /examples
parent275a960e6cb7163f4f37c4d16a4a62f599046613 (diff)
Synchronize `archlinux-keyring` when running guided.py (#917)
* Update guided.py * Update guided.py * Update guided.py * Fix typo * Format string properly; elaborate log msg * Make change consistent to mirror-check * Update documentation
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 9092d8f6..22e0f883 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -309,6 +309,11 @@ 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.update_keyring() or archinstall.arguments.get('skip-keyring-update', False)):
+ log_file = os.path.join(archinstall.storage.get('LOG_PATH', None), archinstall.storage.get('LOG_FILE', None))
+ archinstall.log(f"Failed to update the keyring. Please check your internet connection and the log file '{log_file}'.", level=logging.INFO, fg="red")
+ exit(1)
+
load_config()
if not archinstall.arguments.get('silent'):
ask_user_questions()