From 841970c1b5d633d1ffafdf3d15825f43da7faac0 Mon Sep 17 00:00:00 2001 From: Zbigniew Kostrzewa Date: Fri, 29 Mar 2013 10:27:28 +0100 Subject: [PATCH] Encrypt widget on update. [Issue#] N/A [Problem] Widget's content was not encrypted after updating it though encryption was enabled. [Cause] Encryption step was not included in the update task. [Solution] Include encryption in the update task. [Verification] 1. Build. 2. Install some widget with encryption enabled. 3. Check that widget's start page is encrypted. 4. Install the same widget again. (Update) 5. Check that widget's start page is still encrypted. Change-Id: I29c13be324a3ab774084ed90fa5ebf59f687433a --- src/jobs/widget_install/job_widget_install.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jobs/widget_install/job_widget_install.cpp b/src/jobs/widget_install/job_widget_install.cpp index 0d333f0..12f598c 100644 --- a/src/jobs/widget_install/job_widget_install.cpp +++ b/src/jobs/widget_install/job_widget_install.cpp @@ -254,6 +254,10 @@ JobWidgetInstall::JobWidgetInstall( } AddTask(new TaskCertify(m_installerContext)); + if (m_needEncryption) { + AddTask(new TaskEncryptResource(m_installerContext)); + } + if (m_installerContext.widgetConfig.packagingType != WrtDB::PKG_TYPE_DIRECTORY_WEB_APP) { -- 2.7.4