This commit is contained in:
parent
b00743edd8
commit
3c950abd54
|
@ -291,6 +291,7 @@ void CustomizeSystemRestoreProxy::restoreSystem()
|
||||||
Utils::writeBackupLog(time + "," + m_curUuid + "," + QString::number(m_backupWrapper.m_type) + ",,,," + m_backupPoint.m_backupName);
|
Utils::writeBackupLog(time + "," + m_curUuid + "," + QString::number(m_backupWrapper.m_type) + ",,,," + m_backupPoint.m_backupName);
|
||||||
|
|
||||||
Utils::updateSyncFile();
|
Utils::updateSyncFile();
|
||||||
|
Utils::wait(2);
|
||||||
QString fileIfSync = Utils::getSysRootPath() + FILE_IF_SYNC;
|
QString fileIfSync = Utils::getSysRootPath() + FILE_IF_SYNC;
|
||||||
fileIfSync.replace("//", "/");
|
fileIfSync.replace("//", "/");
|
||||||
QFileInfo file(fileIfSync);
|
QFileInfo file(fileIfSync);
|
||||||
|
|
|
@ -353,6 +353,7 @@ void SystemRestoreProxy::restoreSystem()
|
||||||
Utils::writeBackupLog(time + "," + m_curUuid + "," + QString::number(m_backupWrapper.m_type) + ",,,," + m_backupPoint.m_backupName);
|
Utils::writeBackupLog(time + "," + m_curUuid + "," + QString::number(m_backupWrapper.m_type) + ",,,," + m_backupPoint.m_backupName);
|
||||||
|
|
||||||
Utils::updateSyncFile();
|
Utils::updateSyncFile();
|
||||||
|
Utils::wait(2);
|
||||||
QString fileIfSync = Utils::getSysRootPath() + FILE_IF_SYNC;
|
QString fileIfSync = Utils::getSysRootPath() + FILE_IF_SYNC;
|
||||||
fileIfSync.replace("//", "/");
|
fileIfSync.replace("//", "/");
|
||||||
QFileInfo file(fileIfSync);
|
QFileInfo file(fileIfSync);
|
||||||
|
|
|
@ -406,6 +406,7 @@ void UDiskSystemRestoreProxy::restoreSystem()
|
||||||
Utils::writeBackupLog(time + "," + m_curUuid + "," + QString::number(m_backupWrapper.m_type) + ",,,," + m_backupPoint.m_backupName);
|
Utils::writeBackupLog(time + "," + m_curUuid + "," + QString::number(m_backupWrapper.m_type) + ",,,," + m_backupPoint.m_backupName);
|
||||||
|
|
||||||
Utils::updateSyncFile();
|
Utils::updateSyncFile();
|
||||||
|
Utils::wait(2);
|
||||||
QString fileIfSync = Utils::getSysRootPath() + FILE_IF_SYNC;
|
QString fileIfSync = Utils::getSysRootPath() + FILE_IF_SYNC;
|
||||||
fileIfSync.replace("//", "/");
|
fileIfSync.replace("//", "/");
|
||||||
QFileInfo file(fileIfSync);
|
QFileInfo file(fileIfSync);
|
||||||
|
|
|
@ -1279,6 +1279,8 @@ bool Utils::updateSyncFile()
|
||||||
|
|
||||||
QTextStream out(&file);
|
QTextStream out(&file);
|
||||||
out << "sync" << END_LINE;
|
out << "sync" << END_LINE;
|
||||||
|
out.flush();
|
||||||
|
file.flush();
|
||||||
file.close();
|
file.close();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue