Compress system.7z without Delta method
authorKichan Kwon <k_c.kwon@samsung.com>
Mon, 11 May 2020 11:22:12 +0000 (20:22 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Tue, 12 May 2020 01:59:06 +0000 (10:59 +0900)
- p7zip compresses file with some kinds of methods
  including Delta method
- However, extracting the file compressed by Delta method
  is failed because the version of libtota's lzma-sdk is
  too old(9.20)
- With "-mf=off" option, we can compress with only LZMA method
  which old lzma-sdk supports

- NOTICE
  - Compression ratio is slightly decreased
  - If you want to use Delta method, please update lzma-sdk
    to 15.05 or higher and port libtota

Change-Id: Ib33eec082b7b15c10f3127c8d0c4d558b8c5aa1d
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
mk_delta/common/bin/CreatePatch.py

index 88ecb8a..9da5c88 100755 (executable)
@@ -74,8 +74,8 @@ def global_paths():
 COMMON_BIN_PATH = "../../common/bin/"
 DIFF_UTIL = "/usr/local/bin/ss_bsdiff"
 DIFFPATCH_UTIL = "/usr/local/bin/ss_bspatch"
-ZIPUTIL = "p7zip "
-#ZIPUTIL = "7z a system.7z "
+#ZIPUTIL = "p7zip "
+ZIPUTIL = "7z -mf=off a system.7z "
 NEW_FILES_PATH = "system"
 NEW_FILES_FOLDER  = "system"
 NEW_FILES_ZIP_NAME = "system.7z"