Files
build/tools
Tao Bao 186ec99eb9 releasetools: Fix a bug in blockimgdiff.HeapItem.
HeapItem defines __bool__(), which contains a logical error that should
return the opposite value.

Note that the bug only manifests while using Python 3, which calls
__bool__(). With Python 2, `if x:` or bool(x) actually calls
x.__nonzero__() or x.__len__(). If a class defines neither __len__() nor
__nonzero__(), as the case in HeapItem, it always returns True.

Test: python -m unittest test_blockimgdiff
Test: python3 -m unittest test_blockimgdiff
Test: Generate an incremental non-A/B OTA package successfully.
Change-Id: Ibe8430e0b495a7d2f430cfffb716d2536ffb53d2
2018-01-02 09:54:32 -08:00
..
2017-10-03 13:53:13 -07:00
2017-10-03 13:53:13 -07:00
2017-09-09 13:47:34 -07:00
2017-10-03 13:53:13 -07:00
2017-11-09 15:11:34 -08:00
2017-11-21 03:26:31 +00:00
2017-10-03 13:53:13 -07:00
2016-09-15 14:40:39 -07:00
2017-06-21 16:09:56 -07:00