Add more keystore error catch 56/237256/1
authorHyokeun Jeon <hyokeun.jeon@samsung.com>
Fri, 26 Jun 2020 08:21:18 +0000 (17:21 +0900)
committerHyokeun Jeon <hyokeun.jeon@samsung.com>
Fri, 26 Jun 2020 08:21:43 +0000 (17:21 +0900)
Change-Id: I15c1010eef9a7213eb4d6cdfbbacb3e97e1370f8

abs

diff --git a/abs b/abs
index a73c8bb..098e496 100755 (executable)
--- a/abs
+++ b/abs
@@ -411,8 +411,10 @@ class Sdk(object):
             os.makedirs(output_dir)
         with open(logpath + '.log', 'w') as lf:
             lf.write(out)
-        if 'keystore password was incorrect' in out:
-            raise LocalError('keystore password was incorrect for %s.' % appname)
+        if 'keystore password was incorrect' in out \
+            or 'Sequence tag error' in out \
+            or 'Signing... java.io.IOException: ' in out:
+            raise LocalError('signing error for %s.' % appname)
         raise LocalError('TPK/WGT file not generated for %s.' % appname)
 
     def package(self, source, cert=None, pkg_type=None, conf='Debug', manual_strip=False):