Don't add subpartitions to restore list
Their parents will take care of them. Good parents. Fixes double restoration of subpartitions when they are also set to backup in the recovery fstab. Change-Id: I876c179135e0cb00754e9a8cfc8eac164c4b7fd4
This commit is contained in:
committed by
Dees Troy
parent
6f57f7c601
commit
fddbdfa45f
@@ -1039,7 +1039,8 @@ void TWPartitionManager::Set_Restore_Files(string Restore_Name) {
|
||||
Part->Backup_FileName.resize(Part->Backup_FileName.size() - strlen(extn) + 3);
|
||||
}
|
||||
|
||||
Restore_List += Part->Backup_Path + ";";
|
||||
if (!Part->Is_SubPartition)
|
||||
Restore_List += Part->Backup_Path + ";";
|
||||
}
|
||||
closedir(d);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user