1 // Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by a apache 2.0 license that can be
3 // found in the LICENSE file.
5 #include "common/step/pkgmgr/step_remove_manifest.h"
7 #include <boost/filesystem/path.hpp>
8 #include <boost/filesystem/operations.hpp>
9 #include <boost/system/error_code.hpp>
11 #include <pkgmgr-info.h>
12 #include <pkgmgr_installer.h>
17 #include "common/utils/file_util.h"
19 namespace bf = boost::filesystem;
20 namespace bs = boost::system;
22 namespace common_installer {
26 common_installer::Step::Status StepRemoveManifest::process() {
28 bf::remove(context_->xml_path.get(), error);
31 LOG(ERROR) << "Failed to remove xml manifest file";
32 return Status::MANIFEST_ERROR;
34 LOG(DEBUG) << "Manifest file removed";
40 } // namespace common_installer