Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYash Tripathi <tripathiyash97@gmail.com>2021-05-21 04:00:09 +0530
committerGitHub <noreply@github.com>2021-05-21 04:00:09 +0530
commit23d223b15cacd5139150162a4328022ef12f6469 (patch)
treeef20d72c25a2adb432425a92c60c18c20a19b98a
parentc834bc5eb9b848346128f6cd948607b733710d0f (diff)
fixed creating profile object if profile is passed in vars
-rw-r--r--examples/guided.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/guided.py b/examples/guided.py
index c18e5039..3a2bc1c0 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():