Reworked sharing of widget's shared/res directory. 72/98672/4 accepted/tizen/3.0/common/20170331.151949 accepted/tizen/3.0/ivi/20170331.044306 accepted/tizen/3.0/mobile/20170331.044040 accepted/tizen/3.0/tv/20170331.044159 accepted/tizen/3.0/wearable/20170331.044233 submit/tizen_3.0/20170329.045543
authorPiotr Dabrowski <p.dabrowski2@samsung.com>
Mon, 19 Sep 2016 13:43:16 +0000 (15:43 +0200)
committerDamian Pietruchowski <d.pietruchow@samsung.com>
Thu, 9 Mar 2017 15:52:31 +0000 (16:52 +0100)
commitac5f021f9a6471f9e55eb6d95e8fef85b80559da
tree606c25b71ecd91601eb2a8cfd2e5730f9af09fc6
parent0f82902e6e2b85359471bfee06b7e3139866312e
Reworked sharing of widget's shared/res directory.

./res/wgt/shared/res directory content was moved to ./shared/res
and then ./res/wgt/shared/res was symlinked to ./shared/res

This broke signatures check for delta update.

Now all items (files and directories) under ./res/wgt/shared/res
are symlinked into ./shared/res, and vice versa.
During delta update these symlinks are removed, so that the
signatures check can complete successfully, and later the symlinks
are recreated again.

Added smoke tests for symlinking shared/res contents in Tizen 3.0

Change-Id: I9423d78aba5cb338b14a9f8853754e0fa8980e0c
16 files changed:
src/hybrid/hybrid_installer.cc
src/unit_tests/smoke_test.cc
src/unit_tests/test_samples/smoke/SharedRes24.wgt [new file with mode: 0644]
src/unit_tests/test_samples/smoke/SharedRes30.wgt [new file with mode: 0644]
src/unit_tests/test_samples/smoke/SharedRes30Delta.delta [new file with mode: 0644]
src/unit_tests/test_samples/smoke/SharedRes30Delta.wgt [new file with mode: 0644]
src/unit_tests/test_samples/smoke/SharedRes30Delta_2.wgt [new file with mode: 0644]
src/unit_tests/test_samples/smoke/SharedRes30Hybrid.wgt [new file with mode: 0644]
src/unit_tests/test_samples/smoke/SharedRes30HybridDelta.delta [new file with mode: 0644]
src/unit_tests/test_samples/smoke/SharedRes30HybridDelta.wgt [new file with mode: 0644]
src/unit_tests/test_samples/smoke/SharedRes30HybridDelta_2.wgt [new file with mode: 0644]
src/wgt/step/filesystem/step_wgt_patch_storage_directories.cc
src/wgt/step/filesystem/step_wgt_patch_storage_directories.h
src/wgt/step/filesystem/step_wgt_undo_patch_storage_directories.cc [new file with mode: 0644]
src/wgt/step/filesystem/step_wgt_undo_patch_storage_directories.h [new file with mode: 0644]
src/wgt/wgt_installer.cc