]> code.ossystems Code Review - openembedded-core.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 07:39:25 +0000 (08:39 +0100)
commit1dc5f5d5c844585eec114be9480e0e4d8e60d09c
treea46ab94178e61f8e191214a8210db9d48651ad0b
parentba2adda60dd34b6a8feba413e3207dd8e4580294
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.

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