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:
authorYash Tripathi <tripathiyash97@gmail.com>2021-05-21 04:00:09 +0530
committerDylan Taylor <dylan@dylanmtaylor.com>2021-05-20 18:38:19 -0400
commitcba7dae8f059a39ca7276b517ae062aeeb1433f3 (patch)
tree29f7a74edb3c06966369e71b1fa781813a515724 /examples/guided.py
parente6befe53c75b65c88d8f018efc2e6c9479232e9f (diff)
fixed creating profile object if profile is passed in vars
Diffstat (limited to 'examples/guided.py')
-rw-r--r--examples/guided.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 7de95c72..27b359d1 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -179,6 +179,8 @@ def ask_user_questions():
# Ask for archinstall-specific profiles (such as desktop environments etc)
if not archinstall.arguments.get('profile', None):
archinstall.arguments['profile'] = archinstall.select_profile(archinstall.list_profiles(filter_top_level_profiles=True))
+ else:
+ archinstall.arguments['profile'] = Profile(installer=None, path=archinstall.arguments['profile'])
# Check the potentially selected profiles preparations to get early checks if some additional questions are needed.
if archinstall.arguments['profile'] and archinstall.arguments['profile'].has_prep_function():