Fixing coding style issues found by check-coding-style tool.
Change-Id: I09bce980b003506d281f0bf8b91d547d328971b2
// no need to free pkgmgr_installer here. it will be freed in DTOR.
}
- if (pkgmgr_installer_get_request_type(pi_) == PKGMGR_REQ_MANIFEST_DIRECT_INSTALL) {
+ if (pkgmgr_installer_get_request_type(pi_)
+ == PKGMGR_REQ_MANIFEST_DIRECT_INSTALL) {
/* Add restrictions for manifest direct install
* - Directory should be located under /usr/apps/
* - XML path should be located under /usr/share/packages/
return EINVAL;
}
- if (directory_path.filename().string().compare(xml_path.stem().string()) != 0) {
+ if (directory_path.filename().string()
+ .compare(xml_path.stem().string()) != 0) {
LOG(ERROR) << "invalid parameter: directory path "
<< directory_path
<< "xml path"
<< xml_path;
return EINVAL;
}
-
}
is_app_installed_ = false;
#define COMMON_PKGMGR_INTERFACE_H_
#include <pkgmgr_installer.h>
-
+#include <boost/filesystem/path.hpp>
#include <memory>
#include "common/app_query_interface.h"
#include "common/request.h"
#include "common/utils/macros.h"
#include "common/utils/logging.h"
-#include <boost/filesystem/path.hpp>
namespace common_installer {
}
Step::Status StepCopyTep::process() {
-
if (context_->tep_path.get().empty())
return Step::Status::OK;
context_->pkg_path.set(
context_->root_application_path.get() / context_->pkgid.get());
- bf::path tep_path = context_->pkg_path.get() / "res" / context_->tep_path.get().filename();
+ bf::path tep_path =
+ context_->pkg_path.get() / "res" / context_->tep_path.get().filename();
bs::error_code error;
if (context_->is_tep_move.get()) {
Status precheck() override;
SCOPE_LOG_TAG(CopyTEP)
-
};
} // namespace filesystem
} // namespace common_installer
-#endif // COMMON_STEP_STEP_TEPCOPY_H_
+#endif // COMMON_STEP_STEP_COPY_TEP_H_
}
boost::filesystem::path tmp;
- if (!context_->xml_path.get().empty())
+ if (!context_->xml_path.get().empty()) {
tmp = context_->xml_path.get();
- else {
+ } else {
tmp = context_->unpacked_dir_path.get();
tmp /= kManifestFileName;
}
bool StepParse::LocateConfigFile() {
boost::filesystem::path manifest;
- if (!context_->xml_path.get().empty())
+ if (!context_->xml_path.get().empty()) {
manifest = context_->xml_path.get();
- else {
+ } else {
manifest = context_->unpacked_dir_path.get();
manifest /= kManifestFileName;
}
bf::path StepParse::LocateConfigFile() const {
boost::filesystem::path path;
- if (!context_->xml_path.get().empty())
+ if (!context_->xml_path.get().empty()) {
path = context_->xml_path.get();
- else {
+ } else {
path = context_->unpacked_dir_path.get();
path /= kManifestFileName;
}
std::string path = GetInstallationPackagePath(argc, argv);
std::string pkg_id;
if (path.empty()) {
- //check if it is manifest direct install
+ // check if it is manifest direct install
path = GetXmlPath(argc, argv);
if (path.empty())
return false;
pkg_id = GetPkgIdFromXml(path);
- } else
+ } else {
pkg_id = GetPkgIdFromPath(path);
+ }
if (pkg_id.empty())
return false;
#include "wgt/step/step_check_background_category.h"
+#include <manifest_handlers/setting_handler.h>
+
#include <algorithm>
#include <memory>
#include <string>
#include <vector>
-#include <manifest_handlers/setting_handler.h>
-
#include "common/installer_context.h"
#include "common/utils/glist_range.h"
#include "common/utils/string_util.h"
#ifndef WGT_STEP_STEP_CHECK_BACKGROUND_CATEGORY_H_
#define WGT_STEP_STEP_CHECK_BACKGROUND_CATEGORY_H_
+#include <manifest_parser/utils/version_number.h>
#include <glib.h>
#include <set>
-
-#include <manifest_parser/utils/version_number.h>
+#include <string>
#include "common/step/step.h"
#include "common/utils/logging.h"