apply new error code 34/77334/1 accepted/tizen/common/20160703.130832 accepted/tizen/ivi/20160701.034211 accepted/tizen/mobile/20160701.034344 accepted/tizen/tv/20160701.034113 accepted/tizen/wearable/20160701.034239 submit/tizen/20160630.141237 submit/tizen_common/20160701.180000
authorjongmyeongko <jongmyeong.ko@samsung.com>
Wed, 29 Jun 2016 10:54:27 +0000 (19:54 +0900)
committerjongmyeongko <jongmyeong.ko@samsung.com>
Wed, 29 Jun 2016 10:54:27 +0000 (19:54 +0900)
Change-Id: Iebeb0400aa4874fd3e30d6f5e0134c573a283f6f
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
src/tpk/step/filesystem/step_grant_permission.cc

index 56fddb88ee3dbcbb1ccf8a402a6e03d1841e136e..fee73aecf75c6e5fe43bdfd4231ed458714aed0a 100644 (file)
@@ -65,7 +65,7 @@ ci::Step::Status StepTpkGrantPermission::process() {
       if (!ci::SetDirPermissions(path, permission)) {
         LOG(ERROR) << "Grant permission error" << " path: " << path
             << " permission: " << permission;
-        return Status::ERROR;
+        return Status::GRANT_PERMISSION_ERROR;
       }
       for (auto& entry :
           boost::make_iterator_range(bf::directory_iterator(path), {})) {
@@ -74,7 +74,7 @@ ci::Step::Status StepTpkGrantPermission::process() {
           if (!ci::SetDirPermissions(path, permission)) {
             LOG(ERROR) << "Grant permission error" << " path: " << path
                 << " permission: " << permission;
-            return Status::ERROR; /* temp error, TODO */
+            return Status::GRANT_PERMISSION_ERROR;
           }
         }
       }
@@ -88,7 +88,7 @@ ci::Step::Status StepTpkGrantPermission::process() {
       if (!ci::SetDirPermissions(path, permission)) {
         LOG(ERROR) << "Grant permission error" << " path: " << path
             << " permission: " << permission;
-        return Status::ERROR;
+        return Status::GRANT_PERMISSION_ERROR;
       }
       for (auto& entry :
           boost::make_iterator_range(bf::directory_iterator(path), {})) {
@@ -99,7 +99,7 @@ ci::Step::Status StepTpkGrantPermission::process() {
           if (!ci::SetDirPermissions(path, permission)) {
             LOG(ERROR) << "Grant permission error" << " path: " << path
                 << " permission: " << permission;
-            return Status::ERROR;
+            return Status::GRANT_PERMISSION_ERROR;
           }
         }
       }
@@ -113,7 +113,7 @@ ci::Step::Status StepTpkGrantPermission::process() {
       if (!ci::SetDirPermissions(path, permission)) {
         LOG(ERROR) << "Grant permission error" << " path: " << path
             << " permission: " << permission;
-        return Status::ERROR;
+        return Status::GRANT_PERMISSION_ERROR;
       }
       continue;
     }
@@ -124,7 +124,7 @@ ci::Step::Status StepTpkGrantPermission::process() {
       if (!ci::SetDirPermissions(path, permission)) {
         LOG(ERROR) << "Grant permission error" << " path: " << path
             << " permission: " << permission;
-        return Status::ERROR;
+        return Status::GRANT_PERMISSION_ERROR;
       }
       continue;
     }