Adjust install steps
authorJunghyun Yeon <jungh.yeon@samsung.com>
Thu, 13 May 2021 02:04:58 +0000 (11:04 +0900)
committer연정현/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 <jungh.yeon@samsung.com>
Fri, 14 May 2021 00:45:24 +0000 (09:45 +0900)
Remove signature related steps temporary

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/rpk/rpk_installer.cc

index 5b2e2ba..7088086 100644 (file)
@@ -100,6 +100,12 @@ void RpkInstaller::UpdateSteps() {
     rpk::configuration::StepParseRpkManifest::StoreLocation::BACKUP);
 
   AddStepAfter<rpk::pkgmgr::StepRpkManifestAdjustment>("CopyBackup");
+
+  // TODO(jungh.yeon) : these steps are temporary removed
+  RemoveStep("Signature");
+  RemoveStep("UpdateSecurity");
+  RemoveStep("ChangeOwnershipAndPermission");
+
 /*
   Current step order :
   AddStep<ci::configuration::StepConfigure>(pkgmgr_);
@@ -123,7 +129,6 @@ void RpkInstaller::UpdateSteps() {
   AddStep<rpk::pkgmgr::StepRpkManifestAdjustment>();
   AddStep<ci::security::StepUpdateSecurity>();
   AddStep<ci::pkgmgr::StepUpdateApplication>();
-  AddStep<ci::filesystem::StepUpdateStorageDirectories>();
   AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
 */
 }
@@ -212,6 +217,11 @@ void RpkInstaller::ManifestDirectInstallSteps() {
 
   AddStepAfter<rpk::pkgmgr::StepRpkManifestAdjustment>("Signature");
 
+  // TODO(jungh.yeon) : these steps are temporary removed
+  RemoveStep("Signature");
+  RemoveStep("RegisterSecurity");
+  RemoveStep("ChangeOwnershipAndPermission");
+
 /*
   Current step order :
   AddStep<ci::configuration::StepConfigure>(pkgmgr_);
@@ -239,6 +249,7 @@ void RpkInstaller::ManifestDirectUpdateSteps() {
   RemoveStep("RegisterTrustAnchor");
   RemoveStep("PrivacyPrivilege");
   RemoveStep("RunParserPlugin");
+  RemoveStep("UpdateStorageDirectories");
   RemoveStep("CreateGlobalAppSymlinks");
 
   ReplaceStep<rpk::configuration::StepParseRpkManifest>("ParseManifest",
@@ -246,6 +257,11 @@ void RpkInstaller::ManifestDirectUpdateSteps() {
     rpk::configuration::StepParseRpkManifest::StoreLocation::NORMAL);
 
   AddStepAfter<rpk::pkgmgr::StepRpkManifestAdjustment>("Signature");
+
+  // TODO(jungh.yeon) : these steps are temporary removed
+  RemoveStep("Signature");
+  RemoveStep("RegisterSecurity");
+  RemoveStep("ChangeOwnershipAndPermission");
 /*
   Current step order :
   AddStep<ci::configuration::StepConfigure>(pkgmgr_);
@@ -279,6 +295,10 @@ void RpkInstaller::ManifestPartialInstallSteps() {
     rpk::configuration::StepParseRpkManifest::ManifestLocation::INSTALLED,
     rpk::configuration::StepParseRpkManifest::StoreLocation::NORMAL);
 
+  // TODO(jungh.yeon) : these steps are temporary removed
+  RemoveStep("Signature");
+  RemoveStep("RegisterSecurity");
+
 /*
   Current step order :
   AddStep<ci::configuration::StepConfigure>(pkgmgr_);
@@ -307,6 +327,10 @@ void RpkInstaller::ManifestPartialUpdateSteps() {
     rpk::configuration::StepParseRpkManifest::ManifestLocation::INSTALLED,
     rpk::configuration::StepParseRpkManifest::StoreLocation::NORMAL);
 
+  // TODO(jungh.yeon) : these steps are temporary removed
+  RemoveStep("Signature");
+  RemoveStep("RegisterSecurity");
+
 /*
   Current step order :
   AddStep<ci::configuration::StepConfigure>(pkgmgr_);
@@ -372,6 +396,10 @@ void RpkInstaller::ReadonlyUpdateInstallSteps() {
 
   AddStepAfter<rpk::pkgmgr::StepRpkManifestAdjustment>("Signature");
 
+  // TODO(jungh.yeon) : these steps are temporary removed
+  RemoveStep("Signature");
+  RemoveStep("UpdateSecurity");
+
 /*
   Current step order :
   AddStep<ci::configuration::StepConfigure>(pkgmgr_);
@@ -422,6 +450,10 @@ void RpkInstaller::ReadonlyUpdateUninstallSteps() {
     rpk::configuration::StepParseRpkManifest::ManifestLocation::INSTALLED,
     rpk::configuration::StepParseRpkManifest::StoreLocation::NORMAL);
 
+  // TODO(jungh.yeon) : these steps are temporary removed
+  RemoveStep("Signature");
+  RemoveStep("UpdateSecurity");
+
 /*
   Current step order :
   AddStep<ci::configuration::StepConfigure>(pkgmgr_);