Fix StepWgtPatchIcons 57/109657/1 accepted/tizen/3.0/common/20170116.122559 accepted/tizen/3.0/ivi/20170114.000328 accepted/tizen/3.0/mobile/20170114.000230 accepted/tizen/3.0/tv/20170114.000256 accepted/tizen/3.0/wearable/20170114.000312 accepted/tizen/common/20170112.174504 accepted/tizen/ivi/20170112.222543 accepted/tizen/mobile/20170112.222434 accepted/tizen/tv/20170112.222500 accepted/tizen/wearable/20170112.222522 submit/tizen/20170112.013301 submit/tizen_3.0/20170113.111925
authorSangyoon Jang <s89.jang@samsung.com>
Wed, 11 Jan 2017 02:23:31 +0000 (11:23 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Wed, 11 Jan 2017 05:44:02 +0000 (14:44 +0900)
Set package's icon as same as app's icon.
We don't need icon file named as pkgid.

Change-Id: I11ed3246c7b1db29b29f357491beb4a67ebfb585
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
src/wgt/step/filesystem/step_wgt_patch_icons.cc

index 1a5b3cb..9eaa321 100644 (file)
@@ -55,7 +55,8 @@ common_installer::Step::Status StepWgtPatchIcons::process() {
   bf::create_directories(common_icon_location, error);
   for (icon_x* icon :
       GListRange<icon_x*>(context_->manifest_data.get()->icon)) {
-    bf::path icon_path = common_icon_location / context_->pkgid.get();
+    bf::path icon_path = common_icon_location /
+        context_->manifest_data.get()->mainapp_id;
     if (!PatchIcon(icon, icon_path))
       return Status::ICON_ERROR;
   }