From 856ee2e934ea7024c3949d6c5190e811f8c353bb Mon Sep 17 00:00:00 2001 From: Soyoung Kim Date: Fri, 28 Jun 2013 23:40:37 +0900 Subject: [PATCH] Fixed RDS install failed [Issue#] N/A [Problem] RDS update failed. [Cause] because signature file can't find. [Solution] fixed path of signature file when RDS mode. [SCMRequest] N/A Change-Id: I6673b1eefdcc1aa5eb4a68e5b469b2a39001e61a --- src/jobs/widget_install/task_certify.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/jobs/widget_install/task_certify.cpp b/src/jobs/widget_install/task_certify.cpp index 6223426..2b3d81d 100644 --- a/src/jobs/widget_install/task_certify.cpp +++ b/src/jobs/widget_install/task_certify.cpp @@ -199,6 +199,7 @@ void TaskCertify::processAuthorSignature(const SignatureData &data) void TaskCertify::getSignatureFiles(std::string path, SignatureFileInfoSet& file) { + LogDebug("path : " << path); SignatureFileInfoSet signatureFiles; SignatureFinder signatureFinder(path); if (SignatureFinder::NO_ERROR != signatureFinder.find(file)) { @@ -215,14 +216,20 @@ void TaskCertify::stepSignature() std::string widgetPath; widgetPath = m_contextData.locations->getTemporaryPackageDir() + "/"; + if (m_contextData.mode.command == + InstallMode::Command::REINSTALL) + { + widgetPath = m_contextData.locations->getPackageInstallationDir() + "/"; + } + SignatureFileInfoSet signatureFiles; Try { getSignatureFiles(widgetPath, signatureFiles); if (signatureFiles.size() <= 0) { - widgetPath = m_contextData.locations->getTemporaryPackageDir() + - WrtDB::GlobalConfig::GetWidgetSrcPath() + "/"; + widgetPath += std::string(WrtDB::GlobalConfig::GetWidgetSrcPath()) + + "/"; if (0 == access(widgetPath.c_str(), F_OK)) { getSignatureFiles(widgetPath, signatureFiles); } -- 2.7.4