diff options
-rw-r--r-- | bitbake/lib/bb/providers.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bitbake/lib/bb/providers.py b/bitbake/lib/bb/providers.py index edd54d0c83..22104f1af8 100644 --- a/bitbake/lib/bb/providers.py +++ b/bitbake/lib/bb/providers.py | |||
@@ -124,6 +124,18 @@ def findPreferredProvider(pn, cfgData, dataCache, pkg_pn = None, item = None): | |||
124 | itemstr = " (for item %s)" % item | 124 | itemstr = " (for item %s)" % item |
125 | if preferred_file is None: | 125 | if preferred_file is None: |
126 | logger.info("preferred version %s of %s not available%s", pv_str, pn, itemstr) | 126 | logger.info("preferred version %s of %s not available%s", pv_str, pn, itemstr) |
127 | available_vers = [] | ||
128 | for file_set in pkg_pn: | ||
129 | for f in file_set: | ||
130 | pe, pv, pr = dataCache.pkg_pepvpr[f] | ||
131 | ver_str = pv | ||
132 | if pe: | ||
133 | ver_str = "%s:%s" % (pe, ver_str) | ||
134 | if not ver_str in available_vers: | ||
135 | available_vers.append(ver_str) | ||
136 | if available_vers: | ||
137 | available_vers.sort() | ||
138 | logger.info("versions of %s available: %s", pn, ' '.join(available_vers)) | ||
127 | else: | 139 | else: |
128 | logger.debug(1, "selecting %s as PREFERRED_VERSION %s of package %s%s", preferred_file, pv_str, pn, itemstr) | 140 | logger.debug(1, "selecting %s as PREFERRED_VERSION %s of package %s%s", preferred_file, pv_str, pn, itemstr) |
129 | 141 | ||