Fix icon copying 58/57258/6 accepted/tizen/mobile/20160122.032619 accepted/tizen/tv/20160122.032704 accepted/tizen/wearable/20160122.032714 submit/tizen/20160120.112210
authorTomasz Iwanek <t.iwanek@samsung.com>
Mon, 18 Jan 2016 09:31:48 +0000 (10:31 +0100)
committerTomasz Iwanek <t.iwanek@samsung.com>
Wed, 20 Jan 2016 09:28:50 +0000 (10:28 +0100)
commit782d65d706b0bc46e12a2e041a9331893c788f6c
tree72a07e8bdb40d900f22efda3c5ba86d4c4918696
parentaccca51d6a9e4e8384e3d131a2a459c7b86ad866
Fix icon copying

Icons element are receiving full path in StepParse from now
for both wgt and tpk backend and all modes.

Steps:
 - StepCreateIcons
 - StepBackupIcons
 - StepRecoverIcons
 - StepRemoveIcons
handles icon files only outside package directory (those in: $HOME/.applications/icons/*)
Icons within application directories are copied together with whole package directory (StepCopy)
and are not managed by those steps.

To handle copying icons within package directory new steps are introduced:
 - StepWgtPatchIcons (copy to $package/shared/res/ from widget content directory)
 - StepTpkPatchIcons (copy to $package/shared/res/ if they are in different location, e.g. preload apps)

Following changes needs to be submitted together:
 - https://review.tizen.org/gerrit/57258 (wgt-backend)
 - https://review.tizen.org/gerrit/57257 (app-installers)
 - https://review.tizen.org/gerrit/57259 (tpk-backend)

Verify by:
 $ /usr/bin/tpk-backend-ut/smoke_test --gtest_filter=SmokeTest.UpdateMode_Tpk
 $ /usr/bin/tpk-backend-ut/smoke_test --gtest_filter=SmokeTest.InstallationMode_Tpk
 $ /usr/bin/tpk-backend-ut/smoke_test --gtest_filter=SmokeTest.DeltaMode_Tpk
 $ /usr/bin/wgt-backend-ut/smoke_test --gtest_filter=SmokeTest.InstallationMode
 $ /usr/bin/wgt-backend-ut/smoke_test --gtest_filter=SmokeTest.UpdateMode
 $ /usr/bin/wgt-backend-ut/smoke_test --gtest_filter=SmokeTest.RDSMode
 $ /usr/bin/wgt-backend-ut/smoke_test --gtest_filter=SmokeTest.DeltaMode
 $ /usr/bin/wgt-backend-ut/smoke_test --gtest_filter=SmokeTest.UpdateMode_Rollback
 $ /usr/bin/wgt-backend-ut/smoke_test --gtest_filter=SmokeTest.InstallationMode_Rollback

Change-Id: I8c5d3ba513bb47eed571c3363f657eacb429f82f
14 files changed:
src/hybrid/hybrid_installer.cc
src/wgt/CMakeLists.txt
src/wgt/step/step_generate_xml.cc
src/wgt/step/step_parse.cc
src/wgt/step/step_wgt_backup_icons.cc [deleted file]
src/wgt/step/step_wgt_backup_icons.h [deleted file]
src/wgt/step/step_wgt_create_icons.cc [deleted file]
src/wgt/step/step_wgt_create_icons.h [deleted file]
src/wgt/step/step_wgt_patch_icons.cc [new file with mode: 0644]
src/wgt/step/step_wgt_patch_icons.h [new file with mode: 0644]
src/wgt/step/step_wgt_recover_icons.cc [deleted file]
src/wgt/step/step_wgt_recover_icons.h [deleted file]
src/wgt/wgt_app_query_interface.cc
src/wgt/wgt_installer.cc