summaryrefslogtreecommitdiffstats
path: root/applypatch/include
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2018-02-25 09:29:23 +0100
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-02-25 09:29:23 +0100
commit4bda178fe4d67f7522662ed6708e08f62e03c77d (patch)
tree2c99a055e81bbfe50e2ce1be1a10be194064159d /applypatch/include
parentSnap for 4615953 from a7df3189136283ae20812845183337066498bb2e to pi-release (diff)
parentMerge "Remove the assumption of target chunk size in imgdiff" am: cc3446a7f7 am: a306d7bc55 (diff)
downloadandroid_bootable_recovery-4bda178fe4d67f7522662ed6708e08f62e03c77d.tar
android_bootable_recovery-4bda178fe4d67f7522662ed6708e08f62e03c77d.tar.gz
android_bootable_recovery-4bda178fe4d67f7522662ed6708e08f62e03c77d.tar.bz2
android_bootable_recovery-4bda178fe4d67f7522662ed6708e08f62e03c77d.tar.lz
android_bootable_recovery-4bda178fe4d67f7522662ed6708e08f62e03c77d.tar.xz
android_bootable_recovery-4bda178fe4d67f7522662ed6708e08f62e03c77d.tar.zst
android_bootable_recovery-4bda178fe4d67f7522662ed6708e08f62e03c77d.zip
Diffstat (limited to 'applypatch/include')
-rw-r--r--applypatch/include/applypatch/imgdiff_image.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/applypatch/include/applypatch/imgdiff_image.h b/applypatch/include/applypatch/imgdiff_image.h
index 0f74420f0..084807237 100644
--- a/applypatch/include/applypatch/imgdiff_image.h
+++ b/applypatch/include/applypatch/imgdiff_image.h
@@ -265,8 +265,9 @@ class ZipModeImage : public Image {
std::vector<SortedRangeSet>& split_src_ranges,
size_t total_tgt_size);
// Construct the dummy split images based on the chunks info and source ranges; and move them into
- // the given vectors.
- static void AddSplitImageFromChunkList(const ZipModeImage& tgt_image,
+ // the given vectors. Return true if we add a new split image into |split_tgt_images|, and
+ // false otherwise.
+ static bool AddSplitImageFromChunkList(const ZipModeImage& tgt_image,
const ZipModeImage& src_image,
const SortedRangeSet& split_src_ranges,
const std::vector<ImageChunk>& split_tgt_chunks,