diff options
author | Jesse Zhao <jessezhao@google.com> | 2015-03-02 16:53:08 -0800 |
---|---|---|
committer | Sami Tolvanen <samitolvanen@google.com> | 2015-03-11 17:22:43 +0000 |
commit | 7b985f6aedad882c7b3332032bd9265ec42fc871 (patch) | |
tree | a4d36e16155ac14ff1cdddee78ec62fa15e6ef90 | |
parent | dd67a295cc91ad636b81b705b5bedda945035568 (diff) | |
download | build-7b985f6aedad882c7b3332032bd9265ec42fc871.zip build-7b985f6aedad882c7b3332032bd9265ec42fc871.tar.gz build-7b985f6aedad882c7b3332032bd9265ec42fc871.tar.bz2 |
Fix the error that free_string is not defined.
Change-Id: I7490a91ea930daaf194dad0c8b3a3357558b4770
Bug:19573713
(cherry picked from commit 7ca20d1a1c422dddbdca97c7927cfadd6c38dc68)
-rw-r--r-- | tools/releasetools/blockimgdiff.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/releasetools/blockimgdiff.py b/tools/releasetools/blockimgdiff.py index 0646c5f..5cf0f2d 100644 --- a/tools/releasetools/blockimgdiff.py +++ b/tools/releasetools/blockimgdiff.py @@ -294,6 +294,8 @@ class BlockImageDiff(object): if stashed_blocks > max_stashed_blocks: max_stashed_blocks = stashed_blocks + free_string = [] + if self.version == 1: src_string = xf.src_ranges.to_string_raw() elif self.version >= 2: @@ -306,7 +308,6 @@ class BlockImageDiff(object): size = xf.src_ranges.size() src_string = [str(size)] - free_string = [] unstashed_src_ranges = xf.src_ranges mapped_stashes = [] |