Replace StepRegisterTrustAnchor into StepRecoverTrustAnchor
[platform/core/appfw/wgt-backend.git] / src / wgt / wgt_installer.cc
index 0b0fd63..bebc830 100755 (executable)
@@ -77,6 +77,7 @@
 #include <common/step/security/step_privilege_compatibility.h>
 #include <common/step/security/step_recover_privilege_compatibility.h>
 #include <common/step/security/step_recover_security.h>
+#include <common/step/security/step_recover_trust_anchor.h>
 #include <common/step/security/step_register_security.h>
 #include <common/step/security/step_revoke_security.h>
 #include <common/step/security/step_rollback_installation_security.h>
@@ -441,9 +442,7 @@ WgtInstaller::WgtInstaller(ci::PkgMgrPtr pkgrmgr)
       AddStep<ci::filesystem::StepRecoverChangeOwner>();
       AddStep<ci::security::StepRecoverSecurity>();
       AddStep<ci::pkgmgr::StepRecoverApplication>();
-      AddStep<ci::security::StepRegisterTrustAnchor>(
-          ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE);
-
+      AddStep<ci::security::StepRecoverTrustAnchor>();
   }
 
   void WgtInstaller::MountInstallSteps() {