diff options
Diffstat (limited to 'meta/lib/oe/recipeutils.py')
| -rw-r--r-- | meta/lib/oe/recipeutils.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py index 207c300667..119a68821b 100644 --- a/meta/lib/oe/recipeutils.py +++ b/meta/lib/oe/recipeutils.py | |||
| @@ -31,9 +31,13 @@ def pn_to_recipe(cooker, pn): | |||
| 31 | import bb.providers | 31 | import bb.providers |
| 32 | 32 | ||
| 33 | if pn in cooker.recipecache.pkg_pn: | 33 | if pn in cooker.recipecache.pkg_pn: |
| 34 | filenames = cooker.recipecache.pkg_pn[pn] | ||
| 35 | best = bb.providers.findBestProvider(pn, cooker.data, cooker.recipecache, cooker.recipecache.pkg_pn) | 34 | best = bb.providers.findBestProvider(pn, cooker.data, cooker.recipecache, cooker.recipecache.pkg_pn) |
| 36 | return best[3] | 35 | return best[3] |
| 36 | elif pn in cooker.recipecache.providers: | ||
| 37 | filenames = cooker.recipecache.providers[pn] | ||
| 38 | eligible, foundUnique = bb.providers.filterProviders(filenames, pn, cooker.expanded_data, cooker.recipecache) | ||
| 39 | filename = eligible[0] | ||
| 40 | return filename | ||
| 37 | else: | 41 | else: |
| 38 | return None | 42 | return None |
| 39 | 43 | ||
