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:
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':