summaryrefslogtreecommitdiff
path: root/misc/fontbuild
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2018-12-28 04:44:26 +0300
committerRasmus Andersson <rasmus@notion.se>2018-12-28 04:44:26 +0300
commit2b20e67cae0dec661647e3e16d80734f03eb45cb (patch)
tree665c5bc2496f2d11ea3a17889d6156839b629e84 /misc/fontbuild
parent9bb34a8fa6309c51893dce952375909c11250638 (diff)
downloadinter-2b20e67cae0dec661647e3e16d80734f03eb45cb.tar.xz
adds extra light weight to build system
Diffstat (limited to 'misc/fontbuild')
-rwxr-xr-xmisc/fontbuild7
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