This change is made due to requirements in commit:
- https://review.tizen.org/gerrit/#/c/55679/
Change-Id: I9befa463bd43b6d872e6fd2c8e08b037404d2646
// 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) {
- uid_t uid = getuid();
- if (uid != 0) {
- LOG(ERROR) << "You are not an authorized user(" << uid << ")!";
- return EINVAL;
- }
- }
is_app_installed_ = false;
if (query_interface_)
is_app_installed_ = query_interface_->IsAppInstalledByArgv(argc, argv);
break;
case RequestType::ManifestDirectInstall:
case RequestType::ManifestDirectUpdate: {
- if (context_->request_mode.get() != RequestMode::GLOBAL) {
- LOG(ERROR) <<
- "Only global user allows to use Manifest Direct Install";
- return Status::CONFIG_ERROR;
- }
context_->pkgid.set(pkgmgr_->GetRequestInfo());
bf::path package_directory =
context_->root_application_path.get() / context_->pkgid.get();