From 59df9264e3568d3f147dcfa7c5f7945858eb2c65 Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Wed, 19 Jun 2013 14:53:57 -0500 Subject: Fix backup of datadata Change-Id: Ib0098542599283787592ba08caa070dc818d6111 --- partitionmanager.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'partitionmanager.cpp') diff --git a/partitionmanager.cpp b/partitionmanager.cpp index d7f1600ef..dd2dfd2c4 100644 --- a/partitionmanager.cpp +++ b/partitionmanager.cpp @@ -865,7 +865,7 @@ int TWPartitionManager::Run_Restore(string Restore_Name) { } } } else { - LOGERR("Unable to locate '%s' partition for restoring.\n", restore_path.c_str()); + LOGERR("Unable to locate '%s' partition for restoring (restore list).\n", restore_path.c_str()); } start_pos = end_pos + 1; end_pos = Restore_List.find(";", start_pos); @@ -1814,9 +1814,10 @@ void TWPartitionManager::Get_Partition_List(string ListType, std::vectorIs_SubPartition) { - if (restore_part->Backup_Name == "recovery") { + if ((restore_part = Find_Partition_By_Path(restore_path)) != NULL) { + if (restore_part->Backup_Name == "recovery" || restore_part->Is_SubPartition) { // Don't allow restore of recovery (causes problems on some devices) + // Don't add subpartitions to the list of items } else { struct PartitionList part; part.Display_Name = restore_part->Backup_Display_Name; -- cgit v1.2.3