[K3 Note Q&A, Help & Troubleshooting] del77:
Hello guys, im using TWRP and I have problem with updating my VibeUI through OTA. I know I have to edit my updater scrpit just as I did it while installing vibeui for first time but this file look diffrent in update package and Im afraid to do something wrong.. This is how my updater script looks like:

getprop("ro.product.device") == "aio_otfp" || abort("This package is for "aio_otfp" devices; this is a "" + getprop("ro.product.device") + "".");
ui_print("Verifying current system...");
getprop("ro.build.fingerprint") == "Lenovo/aio_otfp/aio_otfp:5.1/LMY47D/R1442202698.09141152:user/release-keys" ||
getprop("ro.build.fingerprint") == "Lenovo/aio_otfp/aio_otfp:5.1/LMY47D/R1443423744.09281503:user/release-keys" ||
abort("Package expects build fingerprint of Lenovo/aio_otfp/aio_otfp:5.1/LMY47D/R1442202698.09141152:user/release-keys or Lenovo/aio_otfp/aio_otfp:5.1/LMY47D/R1443423744.09281503:user/release-keys; this device has " + getprop("ro.build.fingerprint") + ".");
apply_patch_check("EMMC:boot:7761920:19bfa406e17b296cd848bd036a4b92f909bab1ed:7761920:db56c5b2da964cacc9dbd76fa9f62df9690938cb") || abort(""EMMC:boot:7761920:19bfa406e17b296cd848bd036a4b92f909bab1ed:7761920:db56c5b2da964cacc9dbd76fa9f62df9690938cb" has unexpected contents.");
(range_sha1("system", "2,0,1") == "4584b3885ef0b6ecb296fdd0a1f3751a88f61d07") || abort("system has been remounted R/W; reflash device to reenable OTA updates");
if range_sha1("system", "64,0,32770,32929,32931,33443,65535,65536,65538,66050,98303,98304,98306,98465,98467,98979,131071,131072,131074,131586,163839,163840,163842,164001,164003,164515,196607,196608,196610,197122,222879,229376,229378,229537,229539,230051,262143,262144,262146,294912,294914,295073,295075,295587,327679,327680,327682,360448,360450,393216,393218,425984,425986,458752,458754,491520,491522,524288,524290,557056,557058,589824,589826,622592,622594") == "bd891fd3ab79f49677dabf275d95071b3bd965af" then
ui_print("Verified system image...");
else
(range_sha1("system", "64,0,32770,32929,32931,33443,65535,65536,65538,66050,98303,98304,98306,98465,98467,98979,131071,131072,131074,131586,163839,163840,163842,164001,164003,164515,196607,196608,196610,197122,222856,229376,229378,229537,229539,230051,262143,262144,262146,294912,294914,295073,295075,295587,327679,327680,327682,360448,360450,393216,393218,425984,425986,458752,458754,491520,491522,524288,524290,557056,557058,589824,589826,622592,622594") == "c377655a120ae61eb70d55ed6db018626e32a0dd") ||
abort("system partition has unexpected contents");
endif;

# ---- start making changes here ----

ui_print("Patching system image after verification.");
show_progress(0.900000, 0);
block_image_update("system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");
ui_print("Patching boot image...");
show_progress(0.100000, 10);
apply_patch("EMMC:boot:7761920:19bfa406e17b296cd848bd036a4b92f909bab1ed:7761920:db56c5b2da964cacc9dbd76fa9f62df9690938cb",
"-", db56c5b2da964cacc9dbd76fa9f62df9690938cb, 7761920,
19bfa406e17b296cd848bd036a4b92f909bab1ed, package_extract_file("patch/boot.img.p"));
mount("ext4", "EMMC", "/dev/block/mmcblk0p3", "/data", "");
delete_recursive("/data/data/com.android.providers.media/databases");
delete_recursive("/data/data/com.android.providers.telephony/databases/telephony.db");
delete_recursive("/data/data/com.android.providers.telephony/databases/telephony.db-journal");
unmount("/data");
assert(package_extract_file("uboot.img", "/tmp/uboot.img"),
write_raw_image("/tmp/uboot.img", "uboot"),
delete("/tmp/uboot.img"));
set_progress(1.000000);

Should I edit it so it will look like this one?

ui_print("Patching system image after verification.");
show_progress(0.900000, 0);
block_image_update("system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");
ui_print("Patching boot image...");
show_progress(0.100000, 10);
apply_patch("EMMC:boot:7761920:19bfa406e17b296cd848bd036a4b92f909bab1ed:7761920:db56c5b2da964cacc9dbd76fa9f62df9690938cb",
"-", db56c5b2da964cacc9dbd76fa9f62df9690938cb, 7761920,
19bfa406e17b296cd848bd036a4b92f909bab1ed, package_extract_file("patch/boot.img.p"));
mount("ext4", "EMMC", "/dev/block/mmcblk0p3", "/data", "");
delete_recursive("/data/data/com.android.providers.media/databases");
delete_recursive("/data/data/com.android.providers.telephony/databases/telephony.db");
delete_recursive("/data/data/com.android.providers.telephony/databases/telephony.db-journal");
unmount("/data");
assert(package_extract_file("uboot.img", "/tmp/uboot.img"),
write_raw_image("/tmp/uboot.img", "uboot"),
delete("/tmp/uboot.img"));
set_progress(1.000000);

Could you help me please?