OSDN Git Service

releasetools: Don't write empty groups.
authorTao Bao <tbao@google.com>
Tue, 8 Sep 2015 20:39:40 +0000 (13:39 -0700)
committerTao Bao <tbao@google.com>
Tue, 8 Sep 2015 21:06:08 +0000 (14:06 -0700)
commit42206c3f2fb880f4469c70cd73ae960a47a6f3ca
tree1a06ae60e34e8a47f922b911457490e58d96f52e
parent16656668e1cca5b62ca4487206c462b93bf5a0fc
releasetools: Don't write empty groups.

For a DataImage, we may have no mapping of ZERO or NONZERO blocks. Don't
write those groups if they are empty.

Bug: 19024504
Change-Id: I1e921effcdbf0661d4f4b541c104dd456ac0c582
tools/releasetools/blockimgdiff.py