diff options
author | Rasmus Andersson <rasmus@notion.se> | 2018-12-28 04:44:26 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2018-12-28 04:44:26 +0300 |
commit | 2b20e67cae0dec661647e3e16d80734f03eb45cb (patch) | |
tree | 665c5bc2496f2d11ea3a17889d6156839b629e84 /misc/fontbuild | |
parent | 9bb34a8fa6309c51893dce952375909c11250638 (diff) | |
download | inter-2b20e67cae0dec661647e3e16d80734f03eb45cb.tar.xz |
adds extra light weight to build system
Diffstat (limited to 'misc/fontbuild')
-rwxr-xr-x | misc/fontbuild | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/misc/fontbuild b/misc/fontbuild index 412e982b9..34888cc83 100755 --- a/misc/fontbuild +++ b/misc/fontbuild @@ -458,10 +458,11 @@ class Main(object): ).strip() # Note: ots-sanitize does not exit with an error in many cases where # it fails to sanitize the font. - success = otssan_res.find('Failed') == -1 + success = str(otssan_res).find('Failed') == -1 except: success = False - otssan_res = 'error' + if len(otssan_res) == 0: + otssan_res = 'error' if success: os.unlink(tmpfile) @@ -745,7 +746,7 @@ class Main(object): ).strip() # Note: ots-idempotent does not exit with an error in many cases where # it fails to sanitize the font. - if res.find('Failed') != -1: + if str(res).find('Failed') != -1: log.error('[checkfont] ots-idempotent failed for %r: %s' % ( fontfile, res)) return False |