diff options
Diffstat (limited to 'meta/lib/oe/recipeutils.py')
-rw-r--r-- | meta/lib/oe/recipeutils.py | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py index 1589feb5ce..ae83aabec1 100644 --- a/meta/lib/oe/recipeutils.py +++ b/meta/lib/oe/recipeutils.py | |||
@@ -29,18 +29,9 @@ meta_vars = ['SUMMARY', 'DESCRIPTION', 'HOMEPAGE', 'BUGTRACKER', 'SECTION'] | |||
29 | 29 | ||
30 | def pn_to_recipe(cooker, pn, mc=''): | 30 | def pn_to_recipe(cooker, pn, mc=''): |
31 | """Convert a recipe name (PN) to the path to the recipe file""" | 31 | """Convert a recipe name (PN) to the path to the recipe file""" |
32 | import bb.providers | ||
33 | 32 | ||
34 | if pn in cooker.recipecaches[mc].pkg_pn: | 33 | best = cooker.findBestProvider(pn, mc) |
35 | best = bb.providers.findBestProvider(pn, cooker.data, cooker.recipecaches[mc], cooker.recipecaches[mc].pkg_pn) | 34 | return best[3] |
36 | return best[3] | ||
37 | elif pn in cooker.recipecaches[mc].providers: | ||
38 | filenames = cooker.recipecaches[mc].providers[pn] | ||
39 | eligible, foundUnique = bb.providers.filterProviders(filenames, pn, cooker.expanded_data, cooker.recipecaches[mc]) | ||
40 | filename = eligible[0] | ||
41 | return filename | ||
42 | else: | ||
43 | return None | ||
44 | 35 | ||
45 | 36 | ||
46 | def get_unavailable_reasons(cooker, pn): | 37 | def get_unavailable_reasons(cooker, pn): |