summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-24 21:08:04 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-24 21:08:04 +0200
commitc5865ab0a2f4aa278eb1c12a05767b97763a4e5c (patch)
treea7f0df6c0939b685fac2e3c095dd215413386d23
parentChange curtain to file and remove curtain raise (diff)
downloadandroid_bootable_recovery-c5865ab0a2f4aa278eb1c12a05767b97763a4e5c.tar
android_bootable_recovery-c5865ab0a2f4aa278eb1c12a05767b97763a4e5c.tar.gz
android_bootable_recovery-c5865ab0a2f4aa278eb1c12a05767b97763a4e5c.tar.bz2
android_bootable_recovery-c5865ab0a2f4aa278eb1c12a05767b97763a4e5c.tar.lz
android_bootable_recovery-c5865ab0a2f4aa278eb1c12a05767b97763a4e5c.tar.xz
android_bootable_recovery-c5865ab0a2f4aa278eb1c12a05767b97763a4e5c.tar.zst
android_bootable_recovery-c5865ab0a2f4aa278eb1c12a05767b97763a4e5c.zip
Diffstat (limited to '')
-rw-r--r--partitionmanager.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 739db522b..75ade6584 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -426,10 +426,10 @@ bool TWPartitionManager::Make_MD5(bool generate_md5, string Backup_Folder, strin
if (TWFunc::Path_Exists(Full_File)) {
sprintf(command, "cd '%s' && md5sum %s > %s.md5",Backup_Folder.c_str(), Backup_Filename.c_str(), Backup_Filename.c_str());
if (system(command) == 0) {
- ui_print("MD5 Created.\n");
+ ui_print(" * MD5 Created.\n");
return true;
} else {
- ui_print("MD5 Error!\n");
+ ui_print(" * MD5 Error!\n");
return false;
}
} else {
@@ -440,7 +440,7 @@ bool TWPartitionManager::Make_MD5(bool generate_md5, string Backup_Folder, strin
while (TWFunc::Path_Exists(filename) == true) {
sprintf(command, "cd '%s' && md5sum %s%03i > %s%03i.md5",Backup_Folder.c_str(), Backup_Filename.c_str(), index, Backup_Filename.c_str(), index);
if (system(command) != 0) {
- ui_print("MD5 Error.\n");
+ ui_print(" * MD5 Error.\n");
return false;
}
index++;
@@ -450,7 +450,7 @@ bool TWPartitionManager::Make_MD5(bool generate_md5, string Backup_Folder, strin
LOGE("Backup file: '%s' not found!\n", filename);
return false;
}
- ui_print("MD5 Created.\n");
+ ui_print(" * MD5 Created.\n");
}
return true;
}
@@ -560,6 +560,8 @@ int TWPartitionManager::Run_Backup(void) {
DataManager::GetValue(TW_SKIP_MD5_GENERATE_VAR, do_md5);
if (do_md5 == 0)
do_md5 = true;
+ else
+ do_md5 = false;
DataManager::GetValue(TW_BACKUPS_FOLDER_VAR, Backup_Folder);
DataManager::GetValue(TW_BACKUP_NAME, Backup_Name);