summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2017-01-08 20:12:38 +0100
committerDees Troy <dees_troy@teamw.in>2017-01-18 17:49:23 +0100
commit029a82db6cef52af402271cc0920d2c7f532a5ab (patch)
tree25c743f0380381786fa4dd081b56b47abb5b7342 /partitionmanager.cpp
parentWhitespace cleanup (diff)
downloadandroid_bootable_recovery-029a82db6cef52af402271cc0920d2c7f532a5ab.tar
android_bootable_recovery-029a82db6cef52af402271cc0920d2c7f532a5ab.tar.gz
android_bootable_recovery-029a82db6cef52af402271cc0920d2c7f532a5ab.tar.bz2
android_bootable_recovery-029a82db6cef52af402271cc0920d2c7f532a5ab.tar.lz
android_bootable_recovery-029a82db6cef52af402271cc0920d2c7f532a5ab.tar.xz
android_bootable_recovery-029a82db6cef52af402271cc0920d2c7f532a5ab.tar.zst
android_bootable_recovery-029a82db6cef52af402271cc0920d2c7f532a5ab.zip
Diffstat (limited to 'partitionmanager.cpp')
-rw-r--r--partitionmanager.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index ffa43eeff..8f67897b5 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -362,8 +362,7 @@ void TWPartitionManager::Output_Partition(TWPartition* Part) {
printf(" Format_Block_Size: %lu\n", Part->Format_Block_Size);
if (!Part->MTD_Name.empty())
printf(" MTD_Name: %s\n", Part->MTD_Name.c_str());
- string back_meth = Part->Backup_Method_By_Name();
- printf(" Backup_Method: %s\n", back_meth.c_str());
+ printf(" Backup_Method: %s\n", Part->Backup_Method_By_Name().c_str());
if (Part->Mount_Flags || !Part->Mount_Options.empty())
printf(" Mount_Options: %s\n", Part->Mount_Options.c_str());
if (Part->MTP_Storage_ID)
@@ -584,9 +583,8 @@ bool TWPartitionManager::Backup_Partition(PartitionSettings *part_settings) {
if (part_settings->Part->Backup(part_settings, &tar_fork_pid)) {
bool md5Success = false;
- if (part_settings->adbbackup) {
+ if (part_settings->adbbackup)
md5Success = true;
- }
else
md5Success = Make_MD5(part_settings);