commit | 186ec99eb9a5580bbd6404ba61b5210f524d65aa | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Sat Dec 23 11:50:52 2017 -0800 |
committer | Tao Bao <tbao@google.com> | Tue Jan 02 09:54:32 2018 -0800 |
tree | be4e699c71ea2ab29c33f459e32af3e25a5d6197 | |
parent | a52691b12afa2e7e42ca009808326fde3df07098 [diff] |
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
This is the Makefile-based portion of the Android Build System.
For documentation on how to run a build, see Usage.txt
For a list of behavioral changes useful for Android.mk writers see Changes.md
For an outdated reference on Android.mk files, see build-system.html. Our Android.mk files look similar, but are entirely different from the Android.mk files used by the NDK build system. When searching for documentation elsewhere, ensure that it is for the platform build system -- most are not.
This Makefile-based system is in the process of being replaced with Soong, a new build system written in Go. During the transition, all of these makefiles are read by Kati, and generate a ninja file instead of being executed directly. That's combined with a ninja file read by Soong so that the build graph of the two systems can be combined and run as one.