Fix build error 11/202311/1
authorSangyoon Jang <jeremy.jang@samsung.com>
Wed, 27 Mar 2019 04:58:09 +0000 (13:58 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Wed, 27 Mar 2019 04:58:09 +0000 (13:58 +0900)
Fix wrong merged code.

Change-Id: I544c52b5f802823e75aaf9ca40056f071e90a908
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/common/step/pkgmgr/step_recover_application.cc

index 117edb3..6b4b084 100644 (file)
@@ -27,11 +27,9 @@ Step::Status StepRecoverApplication::RecoveryUpdate() {
     return Status::ERROR;
   }
 
-  if (context_->pkg_query.IsPreloadPackage())
-    SetExtAttrForPreloadPackage(pkg_query.IsUpdatedPackage(),
-        pkg_query.IsRemovablePackage());
-  if (context_->pkg_query->IsUpdatedPackage())
-    SetExtraAttributes(true);
+  if (context_->pkg_query->IsPreloadPackage())
+    SetExtAttrForPreloadPackage(context_->pkg_query->IsUpdatedPackage(),
+        context_->pkg_query->IsRemovablePackage());
   UnregisterApplication();
   if (!RegisterApplication()) {
     LOG(ERROR) << "Unsuccessful app registration";