Wrap the display check's condition over two lines

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Valiantsin DzerakhandClaude Opus 5.5 committed 2026-11-01 23:29:54 +03:00
1 parent 2470097f67
commit b3f569a448
1 file changed
+2 -1
+2 -1
View File
@@ -349,7 +349,8 @@ class Check(Step):
raise InstallError('check.keys_unreadable') from None
if 'header_key' not in key_values:
raise InstallError('check.keys_no_header_key')
if sys.platform == 'linux' and ctx.will_run('prepare') and not (os.environ.get('DISPLAY') or os.environ.get('WAYLAND_DISPLAY')):
if (sys.platform == 'linux' and ctx.will_run('prepare')
and not (os.environ.get('DISPLAY') or os.environ.get('WAYLAND_DISPLAY'))):
# totk --prepare-shaders opens a window and needs a present-capable queue family; without a display it
# fails after lift and compile (~15 min), so stop here
raise InstallError('check.no_display')