Searched refs:updatePath (Results 1 – 2 of 2) sorted by relevance
60 bool StageUpdateModulePackage(const string &updatePath, const string &stagePath) in StageUpdateModulePackage() argument77 ret = link(updatePath.c_str(), stagePath.c_str()); in StageUpdateModulePackage()79 LOG(ERROR) << "Unable to link " << updatePath << " to " << stagePath; in StageUpdateModulePackage()85 …if (Updater::Utils::GetFilesFromDirectory(updatePath.substr(0, updatePath.rfind("/")), files, true… in StageUpdateModulePackage()86 LOG(ERROR) << "Failed to get files form " << updatePath; in StageUpdateModulePackage()98 LOG(INFO) << "success to link " << updatePath << " to " << stagePath; in StageUpdateModulePackage()162 string updatePath = updateModuleFile->GetPath(); in GetLatestUpdateModulePackage() local164 updatePath.substr(strlen(UPDATE_INSTALL_DIR), updatePath.length()); in GetLatestUpdateModulePackage()165 if (!StageUpdateModulePackage(updatePath, activePath)) { in GetLatestUpdateModulePackage()170 LOG(INFO) << "add updateModuleFile " << updatePath; in GetLatestUpdateModulePackage()
45 static bool UpdatePathCheck(const std::string &updatePath, size_t length) in UpdatePathCheck() argument47 if (updatePath.empty() || length == 0) { in UpdatePathCheck()53 if (realpath(updatePath.c_str(), realPath) == nullptr) { in UpdatePathCheck()