Fix icon copying 57/57257/6 accepted/tizen/mobile/20160122.032611 accepted/tizen/tv/20160122.032659 accepted/tizen/wearable/20160122.032711 submit/tizen/20160120.112210
authorTomasz Iwanek <t.iwanek@samsung.com>
Mon, 18 Jan 2016 09:57:25 +0000 (10:57 +0100)
committerTomasz Iwanek <t.iwanek@samsung.com>
Wed, 20 Jan 2016 08:41:05 +0000 (09:41 +0100)
commite9801f955be7dea39d52b31ca13dd3d104921acb
treec10d694b10d9a921c5e377f4d833f78bfda284ae
parent4d5c6e1583ae73949447b7a2644b1c14b9102e7c
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: I61f30b4306ae31d8e88f08f3a2f7ed646d28ead7
src/common/backup_paths.cc
src/common/backup_paths.h
src/common/step/step_backup_icons.cc
src/common/step/step_backup_icons.h
src/common/step/step_create_icons.cc
src/common/step/step_create_icons.h
src/common/step/step_recover_icons.cc
src/common/step/step_recover_icons.h
src/common/step/step_remove_icons.cc