[OE-core] [PATCH v2][1/2] providers.py: Add PREFERRED_RPROVIDER

Jate Sujjavanich jatedev at gmail.com
Wed May 13 22:47:08 UTC 2015


The following changes since commit 7a8f37daa7b42905233c31366915b897886a957a:

  dev-manual: Updates to add Luna support for Eclipse (2015-05-03 11:49:35
+0100)

are available in the git repository at:

  git://github.com/jatedev/poky.git oe-core-image-rdepend-alt-2

for you to fetch changes up to 55bd8d189f647443b28f988ccfc9eebffaec84d1:

  providers.py: Add PREFERRED_RPROVIDER (2015-05-13 11:29:52 -0400)

----------------------------------------------------------------
Jate Sujjavanich (1):
      providers.py: Add PREFERRED_RPROVIDER

 bitbake/lib/bb/providers.py |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/bitbake/lib/bb/providers.py b/bitbake/lib/bb/providers.py
index 637e1fa..910a23e 100644
--- a/bitbake/lib/bb/providers.py
+++ b/bitbake/lib/bb/providers.py
@@ -323,11 +323,12 @@ def filterProvidersRunTime(providers, item, cfgData,
dataCache):
     for p in eligible:
         pn = dataCache.pkg_fn[p]
         provides = dataCache.pn_provides[pn]
+        provides.append(item)
         for provide in provides:
-            prefervar = cfgData.getVar('PREFERRED_PROVIDER_%s' % provide,
True)
-            #logger.debug(1, "checking PREFERRED_PROVIDER_%s (value %s)
against %s", provide, prefervar, pns.keys())
+            prefervar = cfgData.getVar('PREFERRED_RPROVIDER_%s' % provide,
True)
+            #logger.debug(1, "checking PREFERRED_RPROVIDER_%s (value %s)
against %s", provide, prefervar, pns.keys())
             if prefervar in pns and pns[prefervar] not in preferred:
-                var = "PREFERRED_PROVIDER_%s = %s" % (provide, prefervar)
+                var = "PREFERRED_RPROVIDER_%s = %s" % (provide, prefervar)
                 logger.verbose("selecting %s to satisfy runtime %s due to
%s", prefervar, item, var)
                 preferred_vars.append(var)
                 pref = pns[prefervar]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150513/ce7d6dae/attachment-0002.html>


More information about the Openembedded-core mailing list