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:
authorLord Anton Hvornum <anton.feeds@gmail.com>2020-11-08 19:36:29 +0100
committerLord Anton Hvornum <anton.feeds@gmail.com>2020-11-08 19:36:29 +0100
commited579a07ed8e958f11da0117be9d5fc6fd918fed (patch)
treec8c92e4dc97e7d23476b6ba2676f4ca7647347b9 /examples/guided.py
parent9807bd58c4077ac98e2cd55c40e3d189645a66cb (diff)
Fixing issues with lists being passed instead of strings
Diffstat (limited to 'examples/guided.py')
-rw-r--r--examples/guided.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/guided.py b/examples/guided.py
index b5b54a85..d9dd0ac6 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -52,8 +52,8 @@ def perform_installation(device, boot_partition, language, mirrors):
if len(archinstall.storage['_guided']['packages']) and archinstall.storage['_guided']['packages'][0] != '':
installation.add_additional_packages(archinstall.storage['_guided']['packages'])
- if archinstall.storage['_guided']['profile'] and len(archinstall.storage['_guided']['profile'].strip()):
- installation.install_profile(archinstall.storage['_guided']['profile'])
+ if 'profile' in archinstall.storage['_guided'] and len(profile := archinstall.storage['_guided']['profile']['path'].strip()):
+ installation.install_profile(profile)
for user, password in archinstall.storage['_guided']['users'].items():
sudo = False