Fixed check exist directory.
authorSoyoung Kim <sy037.kim@samsung.com>
Fri, 8 Mar 2013 04:41:19 +0000 (13:41 +0900)
committerGerrit Code Review <gerrit2@kim11>
Fri, 8 Mar 2013 08:02:52 +0000 (17:02 +0900)
[Issue#] N/A
[Problem] couldn't check exist directory.
[Cause] there is a bug about checking exist directory.
[Solution] fixed it.
[SCMRequest] N/A

src/jobs/widget_install/job_widget_install.cpp

index 26e8978..2607ab6 100644 (file)
@@ -148,7 +148,7 @@ bool checkTizenPkgIdExist(const std::string& tizenPkgId)
         "/" + tizenPkgId;
 
     struct stat dirStat;
-    if ((stat(installPath.c_str(), &dirStat) == 0) &&
+    if ((stat(installPath.c_str(), &dirStat) == 0) ||
         (stat(preinstallPath.c_str(), &dirStat) == 0))
     {
         return true;