Remove add_shared_dir_readers
authorJihoon Chung <jihoon.chung@samsung.com>
Fri, 17 May 2013 07:22:19 +0000 (16:22 +0900)
committerJihoon Chung <jihoon.chung@samsung.com>
Fri, 17 May 2013 07:37:22 +0000 (16:37 +0900)
[Issue#] N/A
[Problem] lock-up is occurred when web application is updating
[Cause] SMACK API has problem
[Solution] Remove API from installer part
[SCMRequest] N/A

Change-Id: If734c4e5903ea645a6fbef2703f031826816e203

src/jobs/widget_install/task_smack.cpp

index 31a9d23..a007bf7 100644 (file)
@@ -57,13 +57,9 @@ TaskSmack::TaskSmack(InstallerContext& context) :
     m_context(context),
     m_pkgId(NULL)
 {
-    if (!m_context.isUpdateMode) {
-        AddStep(&TaskSmack::StepSetInstall);
-        AddStep(&TaskSmack::StepSmackFolderLabeling);
-        AddStep(&TaskSmack::StepSmackPrivilege);
-    } else {
-        AddStep(&TaskSmack::StepSmackPrivilege);
-    }
+    AddStep(&TaskSmack::StepSetInstall);
+    AddStep(&TaskSmack::StepSmackFolderLabeling);
+    AddStep(&TaskSmack::StepSmackPrivilege);
     AddStep(&TaskSmack::StepSetEndofInstallation);
 
     AddAbortStep(&TaskSmack::StepAbortSmack);
@@ -326,10 +322,6 @@ bool TaskSmack::setLabelForSharedDir(const char* pkgId)
         freeList(pList);
         return false;
     }
-    if (PC_OPERATION_SUCCESS != add_shared_dir_readers(dataLabel.c_str(), pList)) {
-        freeList(pList);
-        return false;
-    }
     if (PC_OPERATION_SUCCESS != app_label_shared_dir(pkgId,
                 "*",
                 m_context.locations->getSharedDataDir().c_str())) {