providers.py: Correct PREFERRED_VERSION handling
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 31 May 2011 22:02:01 +0000 (23:02 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 31 May 2011 22:02:04 +0000 (23:02 +0100)
commit606f1acc6fb8ccec45d6a52ed6ae6dc128011402
treed0deb52551e07ecdc9a2d698d7844d4073bf54e2
parent6c412f009e33e77cbcb5d4881c110e6bdda05282
providers.py: Correct PREFERRED_VERSION handling

Overrides on the right are the highest priority and in this case, pn-PN
and PN should take priority over any other override so fix the code to
do this.

Also, since overrides will have been processed by bitbake, we shouldn't
then be specifically looking up PREFERRED_VERSION_${PN} but just using
PREFERRED_VERSION.

This patch corrects the behaviours to match what the code is expected
to do.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/providers.py