[OE-core] [smartpm][PATCH 0/1] smartpm: if RPM transaction fails with an empty list of problems in attempt mode, ignore it!

Herve Jourdain herve.jourdain at neuf.fr
Thu Jun 9 07:41:30 UTC 2016


Since commit be0cabf816a84c59e0e951b92a570121ed843822 on 2016/05/17, smartpm will retry the transaction if ts.run() returns with an empty list of problems, and we're in attempt mode.
But then, since all the packages are already installed, the transaction will fail with "package already installed" error.

In attempt mode, it's fine to not retry nor generate an error when the transaction fails for no reason linked to files/packages conflicts, so this patch fixes this behaviour.

On a side note, it's most likely that in the case where we could get some packages to be returned in error by ts.run(), the current code that removes those packages from the list and then retry the transaction would also fail with "package already installed" error (unless no packages at all was successfully installed).
This patch does not address that case.

Herve Jourdain (1):
  smartpm: if RPM transaction fails with an empty list of problems in
    attempt mode, ignore it!

 .../python/python-smartpm/smart-attempt.patch              | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

-- 
2.7.4




More information about the Openembedded-core mailing list