From f7a580cbdb25dd4d07bc7419124da59c837de027 Mon Sep 17 00:00:00 2001 From: Sunmin Lee Date: Wed, 25 Oct 2017 19:19:45 +0900 Subject: [PATCH] Binary sameness is not an error It is not an error that some binary in both images are same while generate delta. It should be just skipped, not be aborted. Change-Id: I49d179a148634247981cee8a2cbc8f50b4436c5b Signed-off-by: Sunmin Lee --- mk_delta/common/bin/mk_part_delta.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mk_delta/common/bin/mk_part_delta.sh b/mk_delta/common/bin/mk_part_delta.sh index d33a60f..968e067 100755 --- a/mk_delta/common/bin/mk_part_delta.sh +++ b/mk_delta/common/bin/mk_part_delta.sh @@ -109,7 +109,7 @@ fn_mk_full_img() echo "[${PART_NAME}] two binaries are same" sudo rm -rf ${PART_IMG_OLD} sudo rm -rf ${PART_IMG_NEW} - return 1 + return 0 fi sudo python ${COMMON_BINDIR}/CreatePatch.py ${UPDATE_TYPE} ${PART_NAME} ${PART_IMG_OLD} ${PART_IMG_NEW} ${OUTPUT_DIR} ${UPDATE_CFG_PATH} PythonRet=$? @@ -168,7 +168,7 @@ fn_mk_delta_img_core() echo "[${PART_NAME}] two binaries are same" sudo rm -rf ${PART_IMG_OLD} sudo rm -rf ${PART_IMG_NEW} - return 1 + return 0 fi #---- make delta file ---- @@ -274,7 +274,7 @@ fn_mk_delta_fs_core() sudo rm -rf ${PART_IMG_OLD} sudo rm -rf ${PART_IMG_NEW} sudo rm -rf ${OUTPUT_DIR} - return 1 + return 0 fi #---- make mount point ---- -- 2.7.4