From: Sunmin Lee Date: Wed, 25 Oct 2017 10:19:45 +0000 (+0900) Subject: Binary sameness is not an error X-Git-Tag: accepted/tizen/unified/20240419.110853~98 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f7a580cbdb25dd4d07bc7419124da59c837de027;p=platform%2Fcore%2Fsystem%2Fupgrade-tools.git 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 --- 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 ----