Fix icon copying 59/57259/4 accepted/tizen/mobile/20160122.032617 accepted/tizen/tv/20160122.032703 accepted/tizen/wearable/20160122.032713 submit/tizen/20160120.112210
authorTomasz Iwanek <t.iwanek@samsung.com>
Mon, 18 Jan 2016 10:31:05 +0000 (11:31 +0100)
committerTomasz Iwanek <t.iwanek@samsung.com>
Tue, 19 Jan 2016 16:10:32 +0000 (17:10 +0100)
commit8b858947a91dfc0ba2130b227b8801cb050d5b1b
tree51e46a97023edca4a2223883d9243595f4e08f69
parent209deb1581f9c62e1d48eb6273db03cbf7bac238
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: Ib4d9c86f76b4308eb4258cef1882cc8fe79965fb
src/tpk/CMakeLists.txt
src/tpk/step/step_convert_xml.cc
src/tpk/step/step_convert_xml.h
src/tpk/step/step_parse.cc
src/tpk/step/step_parse.h
src/tpk/step/step_tpk_patch_icons.cc [new file with mode: 0644]
src/tpk/step/step_tpk_patch_icons.h [new file with mode: 0644]
src/tpk/tpk_installer.cc