]> code.ossystems Code Review - openembedded-core.git/commit
python-smartpm: fix sometimes reporting no provider instead of conflict
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 24 Jul 2013 10:15:57 +0000 (11:15 +0100)
committerSaul Wold <sgw@linux.intel.com>
Sun, 28 Jul 2013 06:28:28 +0000 (23:28 -0700)
commit1ed09b87fc8780d4a99f6516493fae2e0c92862c
tree2732df6753ec0d004dc0884e026fc9a55688d93f
parent8994ff6650a4c4c2f0b07e5ee6a5f889270151e5
python-smartpm: fix sometimes reporting no provider instead of conflict

If a requirement of a package is conflicted, depending on how the
solution is reached, Smart's transaction code may eliminate all
providers of the requirement and then error out because nothing provides
them without saying why. To work around this, store a reason and report
that back if we need to, so for example instead of:

  error: Can't install packagegroup-core-ssh-dropbear-1.0-r1@all: no package provides dropbear

we will now get:

  error: Can't install packagegroup-core-ssh-dropbear-1.0-r1@all: unable to install provider for dropbear:
  error:     dropbear-2013.58-r1.0@armv5te is conflicted by openssh-sshd-6.2p2-r0@armv5te

Fixes [YOCTO #4305].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-devtools/python/python-smartpm/smart-conflict-provider.patch [new file with mode: 0644]
meta/recipes-devtools/python/python-smartpm_1.4.1.bb