Introduce recovery option to pkgmgr_installer 16/45316/5
authorTomasz Iwanek <t.iwanek@samsung.com>
Tue, 4 Aug 2015 11:54:47 +0000 (13:54 +0200)
committerjongmyeong ko <jongmyeong.ko@samsung.com>
Tue, 26 Jan 2016 00:04:01 +0000 (16:04 -0800)
commit15469a849ac22a6ac76f3e4fc01713a6036ca8ea
tree10b330ba9b13eff9741a5bdb1e1e3d047c9fc727
parent752758ade87568633888a67a26b517da65e7d4a6
Introduce recovery option to pkgmgr_installer

Pkgmgr declares enum value for recovery installaton
but there is no way for backend to run with this option
as there is missing parsing in pkgmgr_installer_receive_request
which backend is supposed to use.

Adding processing -b option as PKGMGR_REQ_RECOVER in
pkgmgr_installer API.

Note: app-installers backends will expect invocation:
  backend -b /home/guest/apps_rw/recovery-%%%%%%
where file is recovery file generated by interrupted
installation process.

Even the pkgmgr doesn't implements recovery now.
App-installer needs any command line opton to run this mode
when launched from commandline.

Optional parameter of recovery mode is recovery file but if
pkgmgr will support recovery in future, it is supposed that
this may change. This is set in this form for now.

Change-Id: I970607adcb4465e93a84eb774a0d75504cd443d2
comm/pkgmgr_installer.c
comm/pkgmgr_installer_config.h