Initialize exception value for decide success.
authorsung-su.kim <sung-su.kim@samsung.com>
Mon, 14 Oct 2013 07:47:38 +0000 (16:47 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Tue, 15 Oct 2013 00:32:24 +0000 (00:32 +0000)
[Issue#]   N_SE-55213
[Problem]  Sometimes uninstall fail pop up is shown even uninstall is success.
[Cause]    For determining success the exception value was not initialized.
[Solution] Initialize to exception value for decide success.
           In current wrt-installer structure, installer verify this exception value
           at the end of uninstallation. If uninstallation fail, the value is changed
           to error code. If not, this value was initial value.
[Verification] N/A (Not always issue and logical issue)
[SCMRequest] N/A

Change-Id: I8a4bb3bdec871b291fc8d5cd6911bf19720798f5

src/jobs/plugin_install/job_plugin_install.cpp
src/jobs/widget_uninstall/job_widget_uninstall.cpp

index 735016e..2bcd9de 100644 (file)
@@ -31,7 +31,8 @@ JobPluginInstall::JobPluginInstall(PluginPath const &pluginPath,
                                    const PluginInstallerStruct &installerStruct)
     :
     Job(PluginInstallation),
-    JobContextBase<PluginInstallerStruct>(installerStruct)
+    JobContextBase<PluginInstallerStruct>(installerStruct),
+    m_exceptionCaught(Jobs::Exceptions::Success)
 {
     //
     // Init installer context
index 6be8dcc..8a674c3 100644 (file)
@@ -83,7 +83,8 @@ JobWidgetUninstall::JobWidgetUninstall(
     const WidgetUninstallationStruct &
     uninstallerStruct) :
     Job(Uninstallation),
-    JobContextBase<WidgetUninstallationStruct>(uninstallerStruct)
+    JobContextBase<WidgetUninstallationStruct>(uninstallerStruct),
+    m_exceptionCaught(Jobs::Exceptions::Success)
 {
     using namespace PackageManager;
     m_context.removeStarted = false;