diff options
author | steadfasterX <steadfastX@boun.cr> | 2018-07-06 15:40:39 +0200 |
---|---|---|
committer | Dees Troy <dees_troy@teamw.in> | 2018-07-27 19:03:50 +0200 |
commit | 10d747567ef9023078efbef1798e7a814befcfb5 (patch) | |
tree | 20f78a874aa9cf87c47b962a28a9ea84475e0d8c | |
parent | Fix installing OTAs without decrypting (diff) | |
download | android_bootable_recovery-10d747567ef9023078efbef1798e7a814befcfb5.tar android_bootable_recovery-10d747567ef9023078efbef1798e7a814befcfb5.tar.gz android_bootable_recovery-10d747567ef9023078efbef1798e7a814befcfb5.tar.bz2 android_bootable_recovery-10d747567ef9023078efbef1798e7a814befcfb5.tar.lz android_bootable_recovery-10d747567ef9023078efbef1798e7a814befcfb5.tar.xz android_bootable_recovery-10d747567ef9023078efbef1798e7a814befcfb5.tar.zst android_bootable_recovery-10d747567ef9023078efbef1798e7a814befcfb5.zip |
-rw-r--r-- | twinstall.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/twinstall.cpp b/twinstall.cpp index 7351e6326..d63088cb9 100644 --- a/twinstall.cpp +++ b/twinstall.cpp @@ -327,7 +327,14 @@ int TWinstall_zip(const char* path, int* wipe_cache) { string digest_str; string Full_Filename = path; string digest_file = path; - digest_file += ".md5"; + string defmd5file = digest_file + ".md5sum"; + + if (TWFunc::Path_Exists(defmd5file)) { + digest_file += ".md5sum"; + } + else { + digest_file += ".md5"; + } gui_msg("check_for_digest=Checking for Digest file..."); if (!TWFunc::Path_Exists(digest_file)) { |