summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/providers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/providers.py b/bitbake/lib/bb/providers.py
index da762d3d5b..2f6b620b3d 100644
--- a/bitbake/lib/bb/providers.py
+++ b/bitbake/lib/bb/providers.py
@@ -70,6 +70,7 @@ def findPreferredProvider(pn, cfgData, dataCache, pkg_pn = None, item = None):
"""
preferred_file = None
+ preferred_ver = None
localdata = data.createCopy(cfgData)
bb.data.setVar('OVERRIDES', "pn-%s:%s:%s" % (pn, pn, data.getVar('OVERRIDES', localdata)), localdata)
@@ -115,7 +116,7 @@ def findPreferredProvider(pn, cfgData, dataCache, pkg_pn = None, item = None):
else:
bb.msg.debug(1, bb.msg.domain.Provider, "selecting %s as PREFERRED_VERSION %s of package %s%s" % (preferred_file, pv_str, pn, itemstr))
- return (preferred_v, preferred_file)
+ return (preferred_ver, preferred_file)
def findLatestProvider(pn, cfgData, dataCache, file_set):