Replace pkg_path with GetPkgPath() method in InstallerContext 96/154196/11
authorDamian Pietruchowski <d.pietruchow@samsung.com>
Mon, 9 Oct 2017 09:38:01 +0000 (11:38 +0200)
committerBartlomiej Kunikowski <b.kunikowski@partner.samsung.com>
Wed, 22 Nov 2017 09:10:45 +0000 (09:10 +0000)
commit499310f3a00364fb68a744540f5474e865f48bc4
tree5e1ca41cb080246fb6aa4dc6662c24b3c1b46a91
parent59f11af6d094a71c7b27c14e01679bd80658c698
Replace pkg_path with GetPkgPath() method in InstallerContext

pkg_path is always equal to root_application_path + pkgid.
Storing this information in separate variable is problematic,
because it requires to remember to update pkg_path after
root_application_path or pkgid is changed.

Submit with:
- https://review.tizen.org/gerrit/#/c/160353/
- https://review.tizen.org/gerrit/#/c/154904/

Change-Id: I8cc45cd003a642225be88669360b540186f8c678
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
31 files changed:
src/common/installer_context.h
src/common/step/backup/step_copy_backup.cc
src/common/step/configuration/step_configure.cc
src/common/step/configuration/step_parse_manifest.cc
src/common/step/filesystem/step_change_ownership_and_permission.cc
src/common/step/filesystem/step_copy.cc
src/common/step/filesystem/step_copy_storage_directories.cc
src/common/step/filesystem/step_copy_tep.cc
src/common/step/filesystem/step_create_storage_directories.cc
src/common/step/filesystem/step_create_storage_directories.h
src/common/step/filesystem/step_migrate_legacy_external_image.cc
src/common/step/filesystem/step_move_installed_storage.cc
src/common/step/filesystem/step_recover_change_owner.cc
src/common/step/filesystem/step_recover_external_storage.cc
src/common/step/filesystem/step_recover_files.cc
src/common/step/filesystem/step_recover_files.h
src/common/step/filesystem/step_recover_storage_directories.cc
src/common/step/filesystem/step_remove_files.cc
src/common/step/filesystem/step_remove_zip_image.cc
src/common/step/filesystem/step_update_storage_directories.cc
src/common/step/filesystem/step_update_tep.cc
src/common/step/mount/step_mount_install.cc
src/common/step/mount/step_mount_recover.cc
src/common/step/mount/step_mount_update.cc
src/common/step/pkgmgr/step_check_force_clean.cc
src/common/step/rds/step_rds_modify.cc
src/common/step/security/step_recover_security.cc
src/common/step/security/step_register_security.cc
src/common/step/security/step_register_trust_anchor.cc
src/common/step/security/step_rollback_deinstallation_security.cc
src/common/step/security/step_update_security.cc