From: Jihoon Chung Date: Sat, 30 Mar 2013 13:55:20 +0000 (+0900) Subject: Fixed Certificate update issue during updating RDS mode X-Git-Tag: submit/trunk/20130401.133608~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f4f9ac849e758eb32a4e146bb9d49d40f319de43;p=platform%2Fframework%2Fweb%2Fwrt-installer.git Fixed Certificate update issue during updating RDS mode [Issue#] N_SE-30616 [Problem] Even change orientation mode, update isn't working. [Cause] Update fail is occurred when verify author certificate Root cause is long path is set for installed source directory [Solution] Fixed path set routine for set installed directory [SCMRequest] N/A Change-Id: Id9cd9bc71e953589059850aa958aad69f97b81cc --- diff --git a/src/jobs/widget_install/task_certify.cpp b/src/jobs/widget_install/task_certify.cpp index 09fac6c..b3273b1 100644 --- a/src/jobs/widget_install/task_certify.cpp +++ b/src/jobs/widget_install/task_certify.cpp @@ -221,8 +221,14 @@ void TaskCertify::stepSignature() { LogInfo("================ Step: <> ENTER ==============="); - std::string widgetPath = m_contextData.locations->getTemporaryPackageDir() + - "/"; + std::string widgetPath; + if (m_contextData.widgetConfig.packagingType == + WrtDB::PKG_TYPE_DIRECTORY_WEB_APP) + { + widgetPath = m_contextData.locations->getSourceDir() + "/"; + } else { + widgetPath = m_contextData.locations->getTemporaryPackageDir() + "/"; + } SignatureFileInfoSet signatureFiles; SignatureFinder signatureFinder(widgetPath);