]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
python-smartpm: Don't ignore error if RPM transaction fails without problems
authorKlauer, Daniel <Daniel.Klauer@gin.de>
Tue, 17 May 2016 12:58:04 +0000 (12:58 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 May 2016 08:05:18 +0000 (09:05 +0100)
commitbe0cabf816a84c59e0e951b92a570121ed843822
tree2121ca2eec498958ea8c6ff495ca1d09292b386c
parente89c6c4aa682b2cba8c1c50098c95b70ad6746fc
python-smartpm: Don't ignore error if RPM transaction fails without problems

SmartPM could misinterpret RPM transaction error as success,
if ts.run() (RPM Python API) returns an empty problems list.

This could happen for example if the RPM database is partially corrupted
such that the transaction does not have any problems like conflicts or
missing dependencies, but still can't be committed.

The added patch fixes the problem in the upstream sources;
one of the existing patches has to be adjusted to still apply.

(From OE-Core rev: 1dc5f5d5c844585eec114be9480e0e4d8e60d09c)

Signed-off-by: Daniel Klauer <daniel.klauer@gin.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python-smartpm/smart-attempt.patch
meta/recipes-devtools/python/python-smartpm/smart-rpm-transaction-failure-check.patch [new file with mode: 0644]
meta/recipes-devtools/python/python-smartpm_git.bb