From: Tomasz Iwanek Date: Fri, 22 Jan 2016 09:38:45 +0000 (+0100) Subject: Switch parsing procedures to StepParseManifest X-Git-Tag: submit/tizen/20160122.140520^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b7576ac13bb1e7bfc69a6bdf49106cd130c899b0;p=platform%2Fcore%2Fappfw%2Fwgt-backend.git Switch parsing procedures to StepParseManifest Run smoke tests to verify. Requires: - https://review.tizen.org/gerrit/57749 Change-Id: I1818cafd32f5347418f3f5b298b3cc4bcb62c2fc --- diff --git a/src/hybrid/hybrid_installer.cc b/src/hybrid/hybrid_installer.cc index d044c7e..d2070d5 100644 --- a/src/hybrid/hybrid_installer.cc +++ b/src/hybrid/hybrid_installer.cc @@ -16,8 +16,7 @@ #include #include #include -#include -#include +#include #include #include #include @@ -32,7 +31,6 @@ #include #include -#include #include #include "hybrid/hybrid_backend_data.h" @@ -60,7 +58,9 @@ HybridInstaller::HybridInstaller(common_installer::PkgMgrPtr pkgmgr) case ci::RequestType::Install: AddStep(pkgmgr_); AddStep(); - AddStep(); + AddStep( + ci::parse::StepParseManifest::ManifestLocation::PACKAGE, + ci::parse::StepParseManifest::StoreLocation::NORMAL); AddStep(); AddStep(true); AddStep(); @@ -85,7 +85,9 @@ HybridInstaller::HybridInstaller(common_installer::PkgMgrPtr pkgmgr) case ci::RequestType::Update: AddStep(pkgmgr_); AddStep(); - AddStep(); + AddStep( + ci::parse::StepParseManifest::ManifestLocation::PACKAGE, + ci::parse::StepParseManifest::StoreLocation::NORMAL); AddStep(); AddStep(true); AddStep(); @@ -95,7 +97,9 @@ HybridInstaller::HybridInstaller(common_installer::PkgMgrPtr pkgmgr) AddStep(); AddStep(); AddStep(); - AddStep(); + AddStep( + ci::parse::StepParseManifest::ManifestLocation::INSTALLED, + ci::parse::StepParseManifest::StoreLocation::BACKUP); AddStep(); AddStep(); AddStep(); @@ -116,7 +120,9 @@ HybridInstaller::HybridInstaller(common_installer::PkgMgrPtr pkgmgr) // TODO(t.iwanek): this parses both configuration files // tpk and wgt, removing pkgmgr-parser should change this code // that it will still support parsing both files - AddStep(); + AddStep( + ci::parse::StepParseManifest::ManifestLocation::INSTALLED, + ci::parse::StepParseManifest::StoreLocation::NORMAL); AddStep(); AddStep(); AddStep(); @@ -133,9 +139,11 @@ HybridInstaller::HybridInstaller(common_installer::PkgMgrPtr pkgmgr) case ci::RequestType::Delta: AddStep(pkgmgr_); AddStep(); - // TODO(t.iwanek): manifest is parsed twice... - AddStep(); + AddStep( + ci::parse::StepParseManifest::ManifestLocation::PACKAGE, + ci::parse::StepParseManifest::StoreLocation::NORMAL); AddStep(); + // TODO(t.iwanek): manifest is parsed twice... AddStep(false); AddStep(); AddStep(); @@ -146,7 +154,9 @@ HybridInstaller::HybridInstaller(common_installer::PkgMgrPtr pkgmgr) AddStep(); AddStep(); AddStep(); - AddStep(); + AddStep( + ci::parse::StepParseManifest::ManifestLocation::INSTALLED, + ci::parse::StepParseManifest::StoreLocation::BACKUP); AddStep(); AddStep(); AddStep(); diff --git a/src/wgt/wgt_installer.cc b/src/wgt/wgt_installer.cc index 3db7e38..ff190c6 100644 --- a/src/wgt/wgt_installer.cc +++ b/src/wgt/wgt_installer.cc @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #include #include @@ -33,7 +33,6 @@ #include #include #include -#include #include #include #include @@ -100,7 +99,9 @@ WgtInstaller::WgtInstaller(ci::PkgMgrPtr pkgrmgr) AddStep(); AddStep(); AddStep(); - AddStep(); + AddStep( + ci::parse::StepParseManifest::ManifestLocation::INSTALLED, + ci::parse::StepParseManifest::StoreLocation::BACKUP); AddStep(); AddStep(); AddStep(); @@ -117,7 +118,9 @@ WgtInstaller::WgtInstaller(ci::PkgMgrPtr pkgrmgr) } case ci::RequestType::Uninstall: { AddStep(pkgmgr_); - AddStep(); + AddStep( + ci::parse::StepParseManifest::ManifestLocation::INSTALLED, + ci::parse::StepParseManifest::StoreLocation::NORMAL); AddStep(); AddStep(); AddStep(); @@ -132,7 +135,9 @@ WgtInstaller::WgtInstaller(ci::PkgMgrPtr pkgrmgr) AddStep(pkgmgr_); AddStep(false); AddStep(); - AddStep(); + AddStep( + ci::parse::StepParseManifest::ManifestLocation::INSTALLED, + ci::parse::StepParseManifest::StoreLocation::BACKUP); AddStep(); AddStep(); AddStep(); @@ -151,7 +156,9 @@ WgtInstaller::WgtInstaller(ci::PkgMgrPtr pkgrmgr) AddStep(); AddStep(); AddStep(); - AddStep(); + AddStep( + ci::parse::StepParseManifest::ManifestLocation::INSTALLED, + ci::parse::StepParseManifest::StoreLocation::BACKUP); AddStep(); AddStep(); AddStep();