From 4413fdcf816c613f58c337b8551929c596d199b6 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Tue, 1 Sep 2020 14:57:21 +0200 Subject: systemctl spits out some colors, so logic had to be changed. --- examples/guided.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/guided.py b/examples/guided.py index a3331b73..125ebf51 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -9,10 +9,8 @@ def perform_installation(device, boot_partition, language, mirrors): with archinstall.Installer(device, boot_partition=boot_partition, hostname=hostname) as installation: if len(mirrors): archinstall.log(f'Waiting for automatic mirror selection has completed before using custom mirrors.') - while (status := archinstall.service_state('reflector')) != 'dead': - print([status], status != 'dead') + while 'dead' not in (status := archinstall.service_state('reflector')): time.sleep(0.25) - print('Completed.') archinstall.use_mirrors(mirrors) # Set the mirrors for the live medium if installation.minimal_installation(): -- cgit v1.2.3-54-g00ecf