Add a check that tic works as expected

Apparently on FreeBSD it exits with no errors but fails to write the
compiled terminfo file.
This commit is contained in:
Kovid Goyal 2018-07-31 09:01:23 +05:30
parent 9af3081f45
commit 1b2a1a1e77
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -599,6 +599,8 @@ def package(args, for_bundle=False, sh_launcher=False):
odir = os.path.join(x, 'terminfo')
safe_makedirs(odir)
subprocess.check_call(['tic', '-x', '-o' + odir, 'terminfo/kitty.terminfo'])
if not glob.glob(os.path.join(odir, '*/xterm-kitty')):
raise SystemExit('tic failed to output the compiled kitty terminfo file')
shutil.copy2('__main__.py', libdir)
shutil.copy2('logo/kitty.rgba', os.path.join(libdir, 'logo'))
shutil.copy2('logo/beam-cursor.png', os.path.join(libdir, 'logo'))