From fddbdfa45fdf6fb078291a72c38f29f130d48786 Mon Sep 17 00:00:00 2001 From: James Christopher Adduono Date: Mon, 29 Feb 2016 15:08:11 -0500 Subject: 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 --- partitionmanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/partitionmanager.cpp b/partitionmanager.cpp index e244aac79..521079963 100644 --- a/partitionmanager.cpp +++ b/partitionmanager.cpp @@ -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); -- cgit v1.2.3