PARENT_DIR = ".."
MEM_REQ = 0
MEM_FILE = "NULL"
-COMPRESSION_BROTLI = "brotli"
SUPPORT_RENAME = "TRUE"
f.write(line)
-def generate_delta_image(args, COMPRESSION_METHOD):
+def generate_delta_image(args):
#for sizes
oldsize_d = os.path.getsize(args.BASE_OLD)
newsize_d = os.path.getsize(args.BASE_NEW)
patchLoc = '%s/%s' % (args.OUT_DIR, DELTA)
logging.info('Make DELTA_IMAGE type delta %s <--> %s ==> %s %s' % (args.BASE_OLD, args.BASE_NEW, args.PART_NAME, patchLoc))
- subprocess.call([DIFF_UTIL, "-c", COMPRESSION_METHOD, args.BASE_OLD, args.BASE_NEW, patchLoc])
+ subprocess.call([DIFF_UTIL, args.BASE_OLD, args.BASE_NEW, patchLoc])
def generate_full_image(args):
if UPDATE_TYPE_S == FULL_IMAGE:
generate_full_image(args)
elif UPDATE_TYPE_S == DELTA_IMAGE:
- # generating LZMA deltas is supported by underlying software but it would require at least some kind of format autodetection mechanism,
- # which is not available currently. Disable for now.
- generate_delta_image(args, COMPRESSION_BROTLI)
+ generate_delta_image(args)
else:
generate_delta_fs(args)