diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2018-11-28 17:16:16 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-03 12:20:00 +0000 |
commit | 1c0a6cdf428f8a7378ac739ff5193bf8fb372264 (patch) | |
tree | 409c7df2836628f20b852b11d0f702395bc8831a /meta | |
parent | f1ca6f73ebadb73fd362f7084c9c0093215fa379 (diff) | |
download | poky-1c0a6cdf428f8a7378ac739ff5193bf8fb372264.tar.gz |
lib/oe/recipeutils: drop obsolete functions
These date from the time before Tinfoil's API covered this functionality
(back when you could actually access cooker from a tinfoil-based
script).
(From OE-Core rev: fc8098756e8d1d995e3c68e4addc1a5e3596d2ae)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oe/recipeutils.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py index 886ad26f17..9c99164d24 100644 --- a/meta/lib/oe/recipeutils.py +++ b/meta/lib/oe/recipeutils.py | |||
@@ -27,31 +27,6 @@ list_vars = ['SRC_URI', 'LIC_FILES_CHKSUM'] | |||
27 | meta_vars = ['SUMMARY', 'DESCRIPTION', 'HOMEPAGE', 'BUGTRACKER', 'SECTION'] | 27 | meta_vars = ['SUMMARY', 'DESCRIPTION', 'HOMEPAGE', 'BUGTRACKER', 'SECTION'] |
28 | 28 | ||
29 | 29 | ||
30 | def pn_to_recipe(cooker, pn, mc=''): | ||
31 | """Convert a recipe name (PN) to the path to the recipe file""" | ||
32 | |||
33 | best = cooker.findBestProvider(pn, mc) | ||
34 | return best[3] | ||
35 | |||
36 | |||
37 | def get_unavailable_reasons(cooker, pn): | ||
38 | """If a recipe could not be found, find out why if possible""" | ||
39 | import bb.taskdata | ||
40 | taskdata = bb.taskdata.TaskData(None, skiplist=cooker.skiplist) | ||
41 | return taskdata.get_reasons(pn) | ||
42 | |||
43 | |||
44 | def parse_recipe(cooker, fn, appendfiles): | ||
45 | """ | ||
46 | Parse an individual recipe file, optionally with a list of | ||
47 | bbappend files. | ||
48 | """ | ||
49 | import bb.cache | ||
50 | parser = bb.cache.NoCache(cooker.databuilder) | ||
51 | envdata = parser.loadDataFull(fn, appendfiles) | ||
52 | return envdata | ||
53 | |||
54 | |||
55 | def simplify_history(history, d): | 30 | def simplify_history(history, d): |
56 | """ | 31 | """ |
57 | Eliminate any irrelevant events from a variable history | 32 | Eliminate any irrelevant events from a variable history |