Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorDylan M. Taylor <dylan@dylanmtaylor.com>2022-05-28 10:29:46 -0400
committerGitHub <noreply@github.com>2022-05-28 16:29:46 +0200
commit2e77393cf8397197e8006293c230dd93c4378bad (patch)
treee46cdde931ad26c5b551411a16fbf5a44203e0e1 /archinstall/lib
parent486ad7dd6d195dd435c5da58d241e14742f60485 (diff)
Fix issue with multiples spaces in additional packages (#1262)
* Try to fix issue 1259 * trim -> strip
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/user_interaction/general_conf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archinstall/lib/user_interaction/general_conf.py b/archinstall/lib/user_interaction/general_conf.py
index d4dc60db..f1d56fc1 100644
--- a/archinstall/lib/user_interaction/general_conf.py
+++ b/archinstall/lib/user_interaction/general_conf.py
@@ -172,8 +172,8 @@ def ask_additional_packages_to_install(pre_set_packages: List[str] = []) -> List
def read_packages(already_defined: list = []) -> list:
display = ' '.join(already_defined)
- input_packages = TextInput(_('Write additional packages to install (space separated, leave blank to skip): '), display).run()
- return input_packages.split(' ') if input_packages else []
+ input_packages = TextInput(_('Write additional packages to install (space separated, leave blank to skip): '), display).run().strip()
+ return input_packages.split() if input_packages else []
pre_set_packages = pre_set_packages if pre_set_packages else []
packages = read_packages(pre_set_packages)