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
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index e244aac..5210799 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -1039,7 +1039,8 @@
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);