projects
/
platform
/
core
/
appfw
/
tpk-backend.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28f9d53
)
Skip reading icon in case there is no icon file actually
17/138417/1
author
jongmyeongko
<jongmyeong.ko@samsung.com>
Wed, 12 Jul 2017 06:41:19 +0000
(15:41 +0900)
committer
jongmyeongko
<jongmyeong.ko@samsung.com>
Wed, 12 Jul 2017 06:43:37 +0000
(15:43 +0900)
Change-Id: I0a009854533c3ed37906de8452c7385cd62b0125
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
src/lib/tpk_archive_info.cc
patch
|
blob
|
history
diff --git
a/src/lib/tpk_archive_info.cc
b/src/lib/tpk_archive_info.cc
index 5b2aae6f95da29db3a692aa05b1d4b4f375adf07..41a5a4eef1625e93d8bc898d8b899ea777425221 100644
(file)
--- a/
src/lib/tpk_archive_info.cc
+++ b/
src/lib/tpk_archive_info.cc
@@
-210,6
+210,11
@@
bool ReadIcon(const bf::path& icon, const bf::path& tmp_dir,
LOG(INFO) << "Icon file path: " << icon_path;
+ if (!bf::exists(icon_path)) {
+ LOG(WARNING) << "Icon file doesn't actually exist, skip reading icon";
+ return true;
+ }
+
std::ifstream ifs(icon_path.c_str(),
std::ifstream::in | std::ifstream::binary);
ifs.seekg(0, ifs.end);