Fix side-effect on StepCheckForceClean 43/154843/1
authorJunghyun Yeon <jungh.yeon@samsung.com>
Wed, 11 Oct 2017 09:47:54 +0000 (18:47 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Wed, 11 Oct 2017 09:47:54 +0000 (18:47 +0900)
- IsPackageInstalled is not working properly on StepCheckForceClean.
  So, deliver parameter when calling to fix it.

Change-Id: I6c646cdb8e5bcbf769d9f01001ba3610bdcaeef8
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/common/step/pkgmgr/step_check_force_clean.cc

index 90be356..b9d9268 100644 (file)
@@ -33,7 +33,7 @@ Step::Status StepCheckForceClean::process() {
   // if manifeset not found but pkg exist in db for target uid, do clean
   PkgQueryInterface pkg_query(context_->pkgid.get(), context_->uid.get());
   if (!bf::exists(xml_path) &&
-      pkg_query.IsPackageInstalled()) {
+      pkg_query.IsPackageInstalled(context_->request_mode.get())) {
     context_->force_clean_from_db.set(true);
     manifest_x* manifest =
         static_cast<manifest_x*>(calloc(1, sizeof(manifest_x)));