context_->file_path.set(kStrEmpty);
break;
case RequestType::Reinstall:
- context_->unpacked_dir_path.set(pkgmgr_->GetRequestInfo());
- context_->pkgid.set(kStrEmpty);
+ context_->unpacked_dir_path.set(
+ context_->root_application_path.get() / "tmp" /
+ pkgmgr_->GetRequestInfo());
+ context_->pkgid.set(pkgmgr_->GetRequestInfo());
context_->file_path.set(kStrEmpty);
break;
case RequestType::Clear:
}
context_->pkg_path.set(
context_->root_application_path.get() /context_->pkgid.get());
- bf::path install_path = GetAppPath();
+ bf::path install_path = context_->pkg_path.get();
bf::path unzip_path = context_->unpacked_dir_path.get();
if (!AddFiles(unzip_path, install_path) ||
!ModifyFiles(unzip_path, install_path) ||
if (backup_temp_dir_.empty())
return false;
if (operation == Operation::DELETE || operation == Operation::MODIFY) {
- bf::path app_path = GetAppPath();
+ bf::path app_path = context_->pkg_path.get();
bf::path source_path = app_path / relative_path;
if (bf::is_directory(source_path)) {
if (!CreateDir(backup_temp_dir_ / relative_path)) {
*/
Status precheck() override;
- protected:
- /**
- * \brief Parse .rds_delta file
- *
- * \return std::string
- */
- virtual std::string GetAppPath() = 0;
-
private:
enum class Operation {
ADD,
std::vector<std::string> files_to_modify_;
std::vector<std::string> files_to_add_;
std::vector<std::string> files_to_delete_;
+
+ STEP_NAME(RDSModify)
};
} // namespace rds