Fixed get signature file logic
authorSoyoung Kim <sy037.kim@samsung.com>
Fri, 14 Jun 2013 04:53:32 +0000 (13:53 +0900)
committerSoyoung Kim <sy037.kim@samsung.com>
Fri, 14 Jun 2013 04:56:01 +0000 (13:56 +0900)
[Issue#] N/A
[Problem] can't install twitter web app.
[Cause] fail to get signature file.
[Solution] if there is no signature file, skip get certificate.
[SCMRequest] N/A

Change-Id: I1371ca4239eef58c0e99d4122055db66b6514289

src/jobs/widget_install/task_certify.cpp

index 9826b04..6223426 100644 (file)
@@ -223,7 +223,9 @@ void TaskCertify::stepSignature()
         if (signatureFiles.size() <= 0) {
             widgetPath = m_contextData.locations->getTemporaryPackageDir() +
                 WrtDB::GlobalConfig::GetWidgetSrcPath() + "/";
-            getSignatureFiles(widgetPath, signatureFiles);
+            if (0 == access(widgetPath.c_str(), F_OK)) {
+                getSignatureFiles(widgetPath, signatureFiles);
+            }
         }
     } Catch(Exceptions::SignatureNotFound) {
         ReThrowMsg(Exceptions::SignatureNotFound, widgetPath);