OSDN Git Service

releasetools: Fix a bug in ReviseStashSize().
authorTao Bao <tbao@google.com>
Mon, 13 Feb 2017 19:42:50 +0000 (11:42 -0800)
committerTao Bao <tbao@google.com>
Mon, 13 Feb 2017 20:31:42 +0000 (12:31 -0800)
commit3c5a16d49ce9b81bbc7f7595dda16fb4f7f15ab0
tree1276864b004ab635acd1578856be29bb31d230d5
parent06f3258694c6216a8212cf35efcf4f87a439409a
releasetools: Fix a bug in ReviseStashSize().

We check the needed stash size in ReviseStashSize(), and may not
generate a stash command if it would exceed the max allowed size. This
CL fixes a bug when skipping a stash operation: we shouldn't update the
'stashes' map if a stash command won't be generated.

Bug: 35313668
Test: Successfully generate the package that was failing due to the bug.
Change-Id: If0a3a5fadda9b4a4edad66a2a5826b5f978400ae
tools/releasetools/blockimgdiff.py