Home
last modified time | relevance | path

Searched refs:activePath (Results 1 - 3 of 3) sorted by relevance

/base/update/sys_installer/services/module_update/util/src/
H A Dmodule_utils.cpp220 std::string activePath = std::string(UPDATE_ACTIVE_DIR) + "/" + hmpName; in Revert() local
221 int ret = stat(activePath.c_str(), &statData); in Revert()
223 LOG(ERROR) << "Failed to access " << activePath << " err=" << errno; in Revert()
226 if (!ForceRemoveDirectory(activePath)) { in Revert()
227 LOG(ERROR) << "Failed to remove " << activePath; in Revert()
233 ret = rename(backupPath.c_str(), activePath.c_str()); in Revert()
235 LOG(ERROR) << "Failed to rename " << backupPath << " to " << activePath << " err=" << errno; in Revert()
237 if (ret == 0 && chmod(activePath.c_str(), statData.st_mode & ALL_PERMISSIONS) != 0) { in Revert()
238 LOG(ERROR) << "Failed to restore original permissions for " << activePath << " err=" << errno; in Revert()
/base/update/sys_installer/services/module_update/service/src/
H A Dmodule_update_main.cpp303 std::string activePath = std::string(UPDATE_ACTIVE_DIR) + "/" + hmpName + "/" + HMP_INFO_NAME; in ValidateVersion() local
304 if (!Utils::IsFileExist(activePath)) { in ValidateVersion()
307 std::unique_ptr<ModuleFile> activeFile = ModuleFile::Open(activePath); in ValidateVersion()
309 LOG(WARNING) << "Invalid active file " << activePath; in ValidateVersion()
559 std::string activePath = std::string(UPDATE_ACTIVE_DIR) + "/" + hmpName; in BackupActiveModules() local
560 if (!CheckPathExists(activePath)) { in BackupActiveModules()
561 LOG(INFO) << "Nothing to backup, path: " << activePath; in BackupActiveModules()
577 GetDirFiles(activePath, activeFiles); in BackupActiveModules()
/base/update/sys_installer/services/module_update/src/
H A Dmodule_update.cpp163 string activePath = UPDATE_ACTIVE_DIR + in GetLatestUpdateModulePackage() local
165 if (!StageUpdateModulePackage(updatePath, activePath)) { in GetLatestUpdateModulePackage()
168 updateModuleFile->SetPath(activePath); in GetLatestUpdateModulePackage()

Completed in 3 milliseconds