External file removal fix
authorTomasz Iwanek <t.iwanek@samsung.com>
Wed, 31 Oct 2012 10:25:11 +0000 (11:25 +0100)
committerGerrit Code Review <gerrit2@kim11>
Mon, 19 Nov 2012 14:39:54 +0000 (23:39 +0900)
commite55441cad576dfcb1c0ae4749f2e9d9cf92975b7
tree179edc1bc6b799d231ef771e8249d1e5f6d9ffe1
parentae1e92d62798dad5e12cf79b99a9246edad96700
External file removal fix

[Issue#]       N/A
[Bug]          Broken wigdet update in database cause some widget's files may be removed
[Cause]        External files were removed before registeration of new version of widget.
This causes lost of file if file was in previous version (have been removed before registerWidget) but not in current/used by update version of widget.
[Solution]     Fix of database step
[Verification] Check if installer install and uninstall widgets with livebox confiugration. Configuration file should:
-> be present in database after installation.
-> should be removed in uninstallation (and mentioned in logs)
Additonally:
1. Install widget
2. Manipulate database to add non-existing locations.
3. During updating(or -if installation) or uninstalling this files should be listed as external files to be removed but not existing(warning in logs)

Change-Id: I2f365236c0cd1b7ac96fa8fedcc60d542402ac87
src/jobs/widget_install/job_widget_install.cpp
src/jobs/widget_install/job_widget_install.h
src/jobs/widget_install/task_database.cpp
src/jobs/widget_install/task_database.h