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.feeds+github@gmail.com>2020-10-18 13:25:13 +0200
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-10-18 13:25:13 +0200
commita69e1af4f1b13e0a47d4dc634c03b5bc383b9adc (patch)
treeadaf3b046fb4ee3fba6c083b4217ceec1ad42058 /examples/guided.py
parent4b1f22bf91ebd635eaccde670ddba2207b59713b (diff)
Added error handling to guided.py when not selecting a profile to install.
Diffstat (limited to 'examples/guided.py')
-rw-r--r--examples/guided.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/guided.py b/examples/guided.py
index aa5ec98d..30514a71 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -112,8 +112,11 @@ while 1:
while 1:
packages = [package for package in input('Additional packages aside from base (space separated): ').split(' ') if len(package)]
+ if not packages:
+ break
+
try:
- if packages and archinstall.validate_package_list(packages):
+ if archinstall.validate_package_list(packages):
break
except archinstall.RequirementError as e:
print(e)