Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)