Rollback for StepUnregisterApp 23/43923/3
authorTomasz Iwanek <t.iwanek@samsung.com>
Tue, 14 Jul 2015 12:25:31 +0000 (14:25 +0200)
committerTomasz Iwanek <t.iwanek@samsung.com>
Wed, 15 Jul 2015 13:06:03 +0000 (15:06 +0200)
commit582c3e3004149b332ccdf087190f7959a8360004
treef07e9ec441a42170e5993384dcfd754b13103f64
parent988fa0191be73c9071222b2f8c57c943d094a88e
Rollback for StepUnregisterApp

Implement rollback operations for unregistering app.
Package should be fully restored in pkgmgr database
in case of failure of any subsequent step failures.

StepBackupManifest was changed to create copy of manifest
instead of moving it.

Original xml manifest file is used to
unregister application in StepUnregisterApplication and
is removed by uninstallation later.

Backup xml manifest file is used to restore package in
pkgmgr in case of rollback and is removed by StepBackupManifest
(this step is managing lifetime of backup file).

Change-Id: I51a055deb690425151d287262eed73d8b19acbf1
src/common/step/step_backup_manifest.cc
src/common/step/step_unregister_app.cc
src/common/step/step_unregister_app.h
src/tpk/task.cc
src/wgt/wgt_backend.cc