Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/profiles/server.py
diff options
context:
space:
mode:
authorDaniel Girtler <blackrabbit256@gmail.com>2022-05-02 21:01:50 +1000
committerGitHub <noreply@github.com>2022-05-02 13:01:50 +0200
commitf00717ff6fd1c72d61b6928444fbf26a3f5e0e64 (patch)
tree0d37ec0b3f666d0316c7f97dce5c1cf3c81e832f /profiles/server.py
parent48b1001734529c86d09c718d28e32cd6c23958bb (diff)
Fix #1106 (#1119)
* Fix #1106 * flake8 * flake8 Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
Diffstat (limited to 'profiles/server.py')
-rw-r--r--profiles/server.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/profiles/server.py b/profiles/server.py
index c4f35f7b..bbeece12 100644
--- a/profiles/server.py
+++ b/profiles/server.py
@@ -26,15 +26,18 @@ def _prep_function(*args, **kwargs):
Magic function called by the importing installer
before continuing any further.
"""
- if not archinstall.storage.get('_selected_servers', None):
- servers = archinstall.Menu(
- 'Choose which servers to install, if none then a minimal installation wil be done', available_servers,
- multi=True
- ).run()
-
+ servers = archinstall.Menu(
+ 'Choose which servers to install, if none then a minimal installation wil be done',
+ available_servers,
+ preset_values=archinstall.storage.get('_selected_servers', []),
+ multi=True
+ ).run()
+
+ if servers:
archinstall.storage['_selected_servers'] = servers
+ return True
- return True
+ return False
if __name__ == 'server':