This patch removes steps that are no longer in use.
Requires:
- https://review.tizen.org/gerrit/57751
Change-Id: Idb3e8ee5e20a2b23f57bfe9956ceb6dd0145fa4b
step/step_recover_storage_directories.cc
step/step_recovery.cc
step/step_register_app.cc
- step/step_old_manifest.cc
step/step_open_recovery_file.cc
- step/step_parse.cc
step/step_privilege_compatibility.cc
step/step_remove_icons.cc
step/step_remove_files.cc
+++ /dev/null
-// Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
-// Use of this source code is governed by a apache 2.0 license that can be
-// found in the LICENSE file.
-
-#include "common/step/step_old_manifest.h"
-
-#include <boost/filesystem.hpp>
-
-#include <manifest_parser/utils/logging.h>
-#include <pkgmgr-info.h>
-
-#include <string>
-
-namespace common_installer {
-namespace backup {
-
-namespace bf = boost::filesystem;
-
-Step::Status StepOldManifest::process() {
- // TODO(t.iwanek): refactor -> this is set in StepGenerateXml too
- // but for update installation, it is too late
- // set xml file path
- bf::path xml_path = bf::path(getUserManifestPath(context_->uid.get()))
- / bf::path(context_->pkgid.get());
- xml_path += ".xml";
- context_->xml_path.set(xml_path);
-
- if (!bf::exists(context_->xml_path.get())) {
- LOG(ERROR) << "Missing old platform manifest file";
- return Status::MANIFEST_NOT_FOUND;
- }
-
- xmlInitParser();
- manifest_x* mfx = pkgmgr_parser_usr_process_manifest_xml(
- context_->xml_path.get().c_str(), context_->uid.get());
- if (!mfx) {
- LOG(ERROR) << "Failed to parse old tizen manifest xml "
- << context_->xml_path.get();
- return Step::Status::MANIFEST_ERROR;
- }
-
- context_->old_manifest_data.set(mfx);
-
- LOG(DEBUG) << "Successfully parse old tizen manifest xml for update";
-
- return Status::OK;
-}
-
-} // namespace backup
-} // namespace common_installer
+++ /dev/null
-// Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
-// Use of this source code is governed by a apache 2.0 license that can be
-// found in the LICENSE file.
-
-#ifndef COMMON_STEP_STEP_OLD_MANIFEST_H_
-#define COMMON_STEP_STEP_OLD_MANIFEST_H_
-
-#include <manifest_parser/utils/logging.h>
-
-#include "common/installer_context.h"
-
-#include "common/step/step.h"
-
-namespace common_installer {
-namespace backup {
-
-class StepOldManifest : public Step {
- public:
- using Step::Step;
-
- Status process() override;
- Status clean() override { return Status::OK; }
- Status undo() override { return Status::OK; }
- Status precheck() override { return Status::OK; }
-
- SCOPE_LOG_TAG(OldManifest)
-};
-
-} // namespace backup
-} // namespace common_installer
-
-#endif // COMMON_STEP_STEP_OLD_MANIFEST_H_
+++ /dev/null
-/* 2014, Copyright © Eurogiciel Coporation, APACHE-2.0, see LICENSE file */
-// Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
-// Use of this source code is governed by a apache 2.0 license that can be
-// found in the LICENSE file.
-
-#include "common/step/step_parse.h"
-
-#include <pkgmgr-info.h>
-#include <unistd.h>
-
-#include <boost/filesystem.hpp>
-#include <cassert>
-#include <cstring>
-#include <cstdio>
-#include <string>
-
-#include "common/utils/file_util.h"
-
-namespace common_installer {
-namespace parse {
-
-namespace bf = boost::filesystem;
-
-Step::Status StepParse::process() {
- bf::path xml_path = bf::path(getUserManifestPath(context_->uid.get()))
- / bf::path(context_->pkgid.get());
- xml_path += ".xml";
-
- context_->xml_path.set(xml_path.string());
- xmlInitParser();
- manifest_x* mfx = pkgmgr_parser_usr_process_manifest_xml(
- context_->xml_path.get().c_str(), context_->uid.get());
- if (!mfx) {
- LOG(ERROR) << "Failed to parse tizen manifest xml "
- << context_->xml_path.get();
- return Step::Status::PARSE_ERROR;
- }
-
- context_->manifest_data.set(mfx);
-
- context_->pkg_path.set(
- context_->root_application_path.get() / context_->pkgid.get());
-
- LOG(DEBUG) << "Successfully parse tizen manifest xml";
-
- return Status::OK;
-}
-
-} // namespace parse
-} // namespace common_installer
+++ /dev/null
-/* 2014, Copyright © Eurogiciel Coporation, APACHE-2.0, see LICENSE file */
-// Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
-// Use of this source code is governed by a apache 2.0 license that can be
-// found in the LICENSE file.
-
-#ifndef COMMON_STEP_STEP_PARSE_H_
-#define COMMON_STEP_STEP_PARSE_H_
-
-#include <manifest_parser/utils/logging.h>
-
-#include "common/installer_context.h"
-
-#include "common/step/step.h"
-
-namespace common_installer {
-namespace parse {
-
-class StepParse : public Step {
- public:
- using Step::Step;
-
- Status process() override;
- Status clean() override { return Status::OK; }
- Status undo() override { return Status::OK; }
- Status precheck() override { return Status::OK; }
-
- SCOPE_LOG_TAG(Parse)
-};
-
-} // namespace parse
-} // namespace common_installer
-
-#endif // COMMON_STEP_STEP_PARSE_H_