Fix uninstallation - StepRevokeSecurity - remove check of context_->application_path 43/38843/2 accepted/tizen/common/20150430.095307 accepted/tizen/mobile/20150430.124908 accepted/tizen/tv/20150430.124108 accepted/tizen/wearable/20150430.124539 submit/tizen/20150430.084041
authorTomasz Iwanek <t.iwanek@samsung.com>
Tue, 28 Apr 2015 10:23:03 +0000 (12:23 +0200)
committerPawel Sikorski <p.sikorski@samsung.com>
Thu, 30 Apr 2015 07:58:10 +0000 (00:58 -0700)
This path doesn't exist because files are removed before
security is revoked (otherwise they couldn't be).

Change-Id: I54136e38a4b4bc5ccdfa2804eb7162b80fc05487

src/common/step/step_revoke_security.cc

index 221978a..a6bcac4 100644 (file)
@@ -28,14 +28,6 @@ Step::Status StepRevokeSecurity::precheck() {
     // However, during "undo" application_path has to exist.
     // return Step::Status::INVALID_VALUE;
   }
-  if (!boost::filesystem::exists(context_->application_path.get())) {
-    LOG(ERROR) << "application_path ("
-               << context_->application_path.get()
-               << ") path does not exist";
-    // TODO(p.sikorski) during standard process(), it does not need to exist
-    // However, during "undo" application_path has to exist.
-    // return Step::Status::INVALID_VALUE;
-  }
 
   return Step::Status::OK;
 }