summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2014-04-01 20:47:07 +0200
committerGerrit Code Review <gerrit2@gerrit>2014-04-01 20:47:07 +0200
commit5a05f47b20a2c71f925d6e299910cd0843f52205 (patch)
tree359b2039b37f4c0d587cc7f1c651d2a39f9dd210 /partitionmanager.cpp
parentMerge "Fix /data backup size if contains media subdirs" into android-4.4 (diff)
parentif md5 check is not selected for subpartitions, don't check it. (diff)
downloadandroid_bootable_recovery-5a05f47b20a2c71f925d6e299910cd0843f52205.tar
android_bootable_recovery-5a05f47b20a2c71f925d6e299910cd0843f52205.tar.gz
android_bootable_recovery-5a05f47b20a2c71f925d6e299910cd0843f52205.tar.bz2
android_bootable_recovery-5a05f47b20a2c71f925d6e299910cd0843f52205.tar.lz
android_bootable_recovery-5a05f47b20a2c71f925d6e299910cd0843f52205.tar.xz
android_bootable_recovery-5a05f47b20a2c71f925d6e299910cd0843f52205.tar.zst
android_bootable_recovery-5a05f47b20a2c71f925d6e299910cd0843f52205.zip
Diffstat (limited to 'partitionmanager.cpp')
-rw-r--r--partitionmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index f094734c4..3e5d696a6 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -871,7 +871,7 @@ int TWPartitionManager::Run_Restore(string Restore_Name) {
for (subpart = Partitions.begin(); subpart != Partitions.end(); subpart++) {
if ((*subpart)->Is_SubPartition && (*subpart)->SubPartition_Of == restore_part->Mount_Point) {
- if (!(*subpart)->Check_MD5(Restore_Name))
+ if (check_md5 > 0 && !(*subpart)->Check_MD5(Restore_Name))
return false;
}
}