修改bug

This commit is contained in:
zhaominyong 2021-12-11 15:30:28 +08:00
parent afca57cce6
commit 44aa5419b3
1 changed files with 2 additions and 2 deletions

View File

@ -288,7 +288,7 @@ QStringList UDiskSystemRestoreProxy::getRsyncArgs(SystemRestoreScene scene)
bool UDiskSystemRestoreProxy::doPrepare()
{
// 移动设备系统备份如果有img则需要先将img挂载到/backup/imgbackup目录
QString imgPath = m_backupPath + UDISK_MKSQUASHFS_IMG_NAME;
QString imgPath = m_backupPath + "/" + UDISK_MKSQUASHFS_IMG_NAME;
if (Utils::filsExists(imgPath)) {
// 1、检测目录/backup/imgbackup是否存在不存在则创建此目录
QString dstImgMountPath = Utils::getSysRootPath() + BACKUP_IMGBACKUP_PATH;
@ -300,7 +300,7 @@ bool UDiskSystemRestoreProxy::doPrepare()
// 3、将img文件挂载到/backup/imgbackup上
MountBackupProcess *processMount = new MountBackupProcess;
if (processMount->mount(imgPath, dstImgMountPath)) {
if (!processMount->mount(imgPath, dstImgMountPath)) {
emit checkResult(int(BackupResult::RESTOREDIR_PREPARE_FAILED));
return false;
}