summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiankang Fan <jiankang.fan@samsung.com>2016-12-20 08:53:00 +0800
committerSoonKyu Park <sk7.park@samsung.com>2016-12-27 13:58:09 +0900
commit1311058453a8b1a6964e14bdc940468104dac3bb (patch)
tree898da692263dd9377f0914952aeb44c76ab7d006
parenta1ffbd4a79cbe7edfd7b9d6d269d149d14f16e62 (diff)
downloadmic-1311058453a8b1a6964e14bdc940468104dac3bb.tar.gz
mic-1311058453a8b1a6964e14bdc940468104dac3bb.tar.bz2
mic-1311058453a8b1a6964e14bdc940468104dac3bb.zip
Show pkgid when install pkg error
Change-Id: I8bb5737b82f956a6eeccbc994c6a8c48ecde002a Signed-off-by: Jiankang Fan <jiankang.fan@samsung.com>
-rw-r--r--mic/imager/baseimager.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/mic/imager/baseimager.py b/mic/imager/baseimager.py
index 7b201d2..c905724 100644
--- a/mic/imager/baseimager.py
+++ b/mic/imager/baseimager.py
@@ -1004,7 +1004,15 @@ class BaseImageCreator(object):
continue
return False
-
+
+ def showErrorInfo(filepath):
+ if os.path.isfile(filepath):
+ msger.info("The error install package info:")
+ for line in open(filepath):
+ msger.info(line)
+ else:
+ msger.info("%s is not found." % filepath)
+
def get_ssl_verify(ssl_verify=None):
if ssl_verify is not None:
return not ssl_verify.lower().strip() == 'no'
@@ -1086,6 +1094,7 @@ class BaseImageCreator(object):
pkg_manager.close()
if checkScriptletError(self._instroot + "/tmp/.postscript/error/", "_error"):
+ showErrorInfo(self._instroot + "/tmp/.preload_install_error")
raise CreatorError('scriptlet errors occurred')
# hook post install