diff options
author | Dees Troy <dees_troy@teamw.in> | 2013-10-09 16:45:24 +0200 |
---|---|---|
committer | Gerrit Code Review <gerrit@198.50.184.117> | 2013-10-17 18:42:05 +0200 |
commit | ed40077534c2a8082ed21187fd621c1c3f316adf (patch) | |
tree | 24915d939512fe7fd8af4b645c166ffa621eb34f | |
parent | Add toolbox_recovery rules (diff) | |
download | android_bootable_recovery-ed40077534c2a8082ed21187fd621c1c3f316adf.tar android_bootable_recovery-ed40077534c2a8082ed21187fd621c1c3f316adf.tar.gz android_bootable_recovery-ed40077534c2a8082ed21187fd621c1c3f316adf.tar.bz2 android_bootable_recovery-ed40077534c2a8082ed21187fd621c1c3f316adf.tar.lz android_bootable_recovery-ed40077534c2a8082ed21187fd621c1c3f316adf.tar.xz android_bootable_recovery-ed40077534c2a8082ed21187fd621c1c3f316adf.tar.zst android_bootable_recovery-ed40077534c2a8082ed21187fd621c1c3f316adf.zip |
Diffstat (limited to '')
-rw-r--r-- | twrpTar.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/twrpTar.cpp b/twrpTar.cpp index 9c151b939..76c23c868 100644 --- a/twrpTar.cpp +++ b/twrpTar.cpp @@ -536,6 +536,12 @@ int twrpTar::Generate_Multiple_Archives(string Path) { { unsigned long long folder_size = TWFunc::Get_Folder_Size(FileName, false); if (Archive_Current_Size + folder_size > MAX_ARCHIVE_SIZE) { + // Add the root folder first + LOGINFO("Adding root folder '%s' before splitting.\n", FileName.c_str()); + if (addFile(FileName, true) != 0) { + LOGERR("Error adding folder '%s' to split archive.\n", FileName.c_str()); + return -1; + } LOGINFO("Calling Generate_Multiple_Archives\n"); if (Generate_Multiple_Archives(FileName) < 0) return -1; @@ -717,7 +723,7 @@ int twrpTar::tarDirs(bool include_root) { if (strcmp(de->d_name, ".") != 0) { subfolder += de->d_name; } else { - LOGINFO("addFile '%s' including root: %i\n", buf, include_root); + LOGINFO("tarDirs addFile '%s' including root: %i\n", subfolder.c_str(), include_root); if (addFile(subfolder, include_root) != 0) return -1; continue; |