Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorYash Tripathi <tripathiyash97@gmail.com>2021-05-28 08:50:27 +0530
committerGitHub <noreply@github.com>2021-05-28 08:50:27 +0530
commit3aee3611c4081272c622a86f09bbd1c8c382b098 (patch)
treeee58f85647cd3083a0d40b1f911535a155f8782b /examples
parentc3c55f59928a6b07739114aa4e25713051bbbcca (diff)
added support for setting profile to a dict or a string in config
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/guided.py b/examples/guided.py
index b26887a5..42429370 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -444,7 +444,10 @@ else:
archinstall.arguments['harddrive'].keep_partitions = False
# Temporary workaround to make Desktop Environments work
if archinstall.arguments.get('profile', None) is not None:
- archinstall.arguments['profile'] = archinstall.Profile(None, archinstall.arguments.get('profile', None))
+ if type(archinstall.arguments.get('profile', None)) is dict:
+ archinstall.arguments['profile'] = archinstall.Profile(None, archinstall.arguments.get('profile', None)['path'])
+ else:
+ archinstall.arguments['profile'] = archinstall.Profile(None, archinstall.arguments.get('profile', None))
else:
archinstall.arguments['profile'] = None
if archinstall.arguments.get('mirror-region', None) is not None: