upgrade-apply: Stop copying data twice 43/292643/3
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Wed, 10 May 2023 12:02:24 +0000 (14:02 +0200)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Mon, 7 Aug 2023 09:33:52 +0000 (11:33 +0200)
commit533a1e8caed9b4734ec6fdf3687fff3588c074bb
tree5abfd71cd72fff5efca2261b79d03c5aaebcb252
parentc844f7328ef7a9daeec0fe18133b72ef16eb514e
upgrade-apply: Stop copying data twice

In case the destination partition is the clone of the source partition,
then there is no need to copy data again, because it is already in
place.

Change-Id: I31efe018a76f1237452109fd463056c949e88bf9
scripts/upgrade-support/upgrade-common.inc
src/upgrade-apply/main.c
src/upgrade-apply/patch/patch.c
src/upgrade-apply/patch/patch.h
src/upgrade-apply/patch/patch_helper.c