]> code.ossystems Code Review - openembedded-core.git/commit
package_manager.py: rework postinst_intercept failures
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>
Mon, 11 Jun 2018 13:38:22 +0000 (16:38 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Jun 2018 09:59:33 +0000 (10:59 +0100)
commita335e78672b1e1ae3ea6427f6a805218e513bb52
tree0fa0fb39aca3fad2be8774d76f79d8e98825fc8b
parent2f31eecc40ea4d0865aa28d65a0ba7d5a629393a
package_manager.py: rework postinst_intercept failures

Previously a warning was printed regardless of context and nature
of the failure, and because it was only a warning, it was mostly ignored.

Now, the following is considered when a failure happens:
1) whether we are installing packages into a target image, or populating
a SDK with host or target packages.
2) whether the failure was due to qemu not supporting the target machine.

Accordingly, warnings, notes, and failures are printed, and postponing
to first boot happens if possible.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/package_manager.py
meta/lib/oe/sdk.py
meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb