修改bug
This commit is contained in:
parent
afca57cce6
commit
44aa5419b3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue