index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-09-30 09:11:36 +0000 |
---|---|---|
committer | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-09-30 09:11:36 +0000 |
commit | 85fd06fa8a20a1861c9ec0d8e15da954fe5cdd43 (patch) | |
tree | 9bcb45341bd95a225800c5c7680c632e4ebff5cd /examples | |
parent | 5a4d68e617ba4e76137db96542ebaeb08acd70cb (diff) |
-rw-r--r-- | examples/guided.py | 12 |
diff --git a/examples/guided.py b/examples/guided.py index 7b09b159..0447df26 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -92,11 +92,19 @@ while 1: users[new_user] = new_user_passwd break -profile = archinstall.select_profile(archinstall.list_profiles()) +while 1: + profile = archinstall.select_profile(archinstall.list_profiles()) + if profile != str: # Got a imported profile + if not profile[1]._prep_function(): + archinstall.log(' * Profile\'s preperation requirements was not fulfilled.', bg='black', fg='red') + continue + profile = profile[0]._path # Once the prep is done, replace the selected profile with the profile name ("path") given from select_profile() + break + else: + break packages = input('Additional packages aside from base (space separated): ').split(' ') - """ Issue a final warning before we continue with something un-revertable. """ |