Lines Matching refs:dataCurrentDirName

286                                   const std::string& dataCurrentDirName,  in handleStagedUninstall()  argument
299 if (!deleteDir(dataCurrentDirName)) { in handleStagedUninstall()
300 LOG(WARNING) << "Deletion of current distro " << dataCurrentDirName in handleStagedUninstall()
310 LOG(WARNING) << "Current distro dir " << dataCurrentDirName in handleStagedUninstall()
312 if (!deleteFile(dataCurrentDirName)) { in handleStagedUninstall()
313 LOG(WARNING) << "Could not delete " << dataCurrentDirName; in handleStagedUninstall()
321 LOG(WARNING) << "Deletion of current distro " << dataCurrentDirName in handleStagedUninstall()
331 const std::string& dataCurrentDirName, in handleStagedInstall() argument
343 if (!deleteDir(dataCurrentDirName)) { in handleStagedInstall()
344 LOG(WARNING) << "Deletion of current distro " << dataCurrentDirName in handleStagedInstall()
353 LOG(WARNING) << "Current distro dir " << dataCurrentDirName in handleStagedInstall()
355 if (!deleteFile(dataCurrentDirName)) { in handleStagedInstall()
356 LOG(WARNING) << "Could not delete " << dataCurrentDirName; in handleStagedInstall()
363 LOG(INFO) << "Moving " << dataStagedDirName << " to " << dataCurrentDirName; in handleStagedInstall()
364 int rc = rename(dataStagedDirName.c_str(), dataCurrentDirName.c_str()); in handleStagedInstall()
367 << &dataCurrentDirName[0]; in handleStagedInstall()
377 const std::string& dataCurrentDirName) { in processStagedOperation() argument
397 PathStatus dataCurrentDirStatus = checkPath(dataCurrentDirName); in processStagedOperation()
399 LOG(WARNING) << "Current install dir " << dataCurrentDirName << " could not be accessed" in processStagedOperation()
416 handleStagedUninstall(dataStagedDirName, dataCurrentDirName, dataCurrentDirStatus); in processStagedOperation()
419 handleStagedInstall(dataStagedDirName, dataCurrentDirName, dataCurrentDirStatus); in processStagedOperation()
448 std::string dataCurrentDirName(dataZoneInfoDir); in main() local
449 dataCurrentDirName += CURRENT_DIR_NAME; in main()
454 processStagedOperation(dataStagedDirName, dataCurrentDirName); in main()
457 PathStatus dataCurrentDirStatus = checkPath(dataCurrentDirName); in main()
459 LOG(INFO) << "timezone distro dir " << dataCurrentDirName in main()
468 LOG(WARNING) << "Current distro dir " << dataCurrentDirName in main()
474 std::string distroVersionFileName(dataCurrentDirName); in main()
484 deleteUpdateDistroDir(dataCurrentDirName); in main()
492 deleteUpdateDistroDir(dataCurrentDirName); in main()
530 deleteUpdateDistroDir(dataCurrentDirName); in main()
547 deleteUpdateDistroDir(dataCurrentDirName); in main()
563 LOG(INFO) << "timezone distro in " << dataCurrentDirName << " is older than data in " in main()
566 deleteUpdateDistroDir(dataCurrentDirName); in main()