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>2021-04-09 20:18:14 +0200
committerAnton Hvornum <anton@hvornum.se>2021-04-09 20:18:14 +0200
commitf57b533275251b8f249a1a396261489e4f0266d8 (patch)
treed7b5c99dd644e2f5d974b4e5bf278564cde5675f /examples
parentb046f7e0e51b2de9eab747d16f38d3944be2dae8 (diff)
Added some debug output
Adding debug output for additional package selection.
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/examples/guided.py b/examples/guided.py
index c7fecb5e..60517005 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -177,12 +177,14 @@ def ask_user_questions():
print("If you desire a web browser, such as firefox or chromium, you may specify it in the following prompt.")
archinstall.arguments['packages'] = [package for package in input('Write additional packages to install (space separated, leave blank to skip): ').split(' ') if len(package)]
- # Verify packages that were given
- try:
- archinstall.validate_package_list(archinstall.arguments['packages'])
- except archinstall.RequirementError as e:
- archinstall.log(e, fg='red')
- exit(1)
+ if len(archinstall.arguments['packages']):
+ # Verify packages that were given
+ try:
+ archinstall.log(f"Verifying that additional packages exist (this might take a few seconds)")
+ archinstall.validate_package_list(archinstall.arguments['packages'])
+ except archinstall.RequirementError as e:
+ archinstall.log(e, fg='red')
+ exit(1)
# Ask or Call the helper function that asks the user to optionally configure a network.
if not archinstall.arguments.get('nic', None):