]> code.ossystems Code Review - openembedded-core.git/commit
package_manager.py: add debugging support for rpm scriptlet execution
authorPatrick Ohly <patrick.ohly@intel.com>
Wed, 9 Dec 2015 17:48:28 +0000 (18:48 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 27 Dec 2015 11:27:01 +0000 (11:27 +0000)
commit5cb597a19dbfe825e5b26d828e18644c9ee58f86
tree1c2c3861005ba214a0f9c6775324efb790e415d6
parentce6f15dc3905ab0b061b20cc35fd179fdd9e070f
package_manager.py: add debugging support for rpm scriptlet execution

By default, smart is invoked with --log-level=warning, which hides all
output from pre/post install scriptlets. That makes it hard to debug
scriptlet failure or why they get postponed to first-boot via
/etc/rpm-postinst.

The new ROOTFS_RPM_DEBUG variabled is expected to be set to an integer in
local.conf an incrementally adds more output:
  0 = default, only warnings
  1 = --log-level=info (includes information about executing scriptlets and their output)
  2 = --log-level=debug
  3 = --log-level=debug plus dumps of scriplet content and command invocation

The default behavior is not changed yet, but it seems that level 1 would
be a better default.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oe/package_manager.py