summaryrefslogtreecommitdiffstats
path: root/scripts/contrib/list-packageconfig-flags.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-08-31 13:48:06 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-03 23:45:52 +0100
commit4a5aa7ea4d07c2c90a1654b174873abb018acc67 (patch)
treed59cf7287403ae74c8327b4308a1108b134a642f /scripts/contrib/list-packageconfig-flags.py
parent1100af93cb07caf24d568c039d52fb0c80714c30 (diff)
downloadpoky-4a5aa7ea4d07c2c90a1654b174873abb018acc67.tar.gz
scripts/contrib: update scripts for changes to internal API
The multiconfig changes altered some of the functions being called here, so update the calls. Make use of the new Tinfoil.parse_recipe_file() function to make parsing easier. (From OE-Core rev: 95b6ceffd947271f315d8a7660797ab371adfbb9) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/contrib/list-packageconfig-flags.py')
-rwxr-xr-xscripts/contrib/list-packageconfig-flags.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/contrib/list-packageconfig-flags.py b/scripts/contrib/list-packageconfig-flags.py
index b8327e4ebc..9090935e0f 100755
--- a/scripts/contrib/list-packageconfig-flags.py
+++ b/scripts/contrib/list-packageconfig-flags.py
@@ -37,7 +37,6 @@ if not bitbakepath:
37 sys.stderr.write("Unable to find bitbake by searching parent directory of this script or PATH\n") 37 sys.stderr.write("Unable to find bitbake by searching parent directory of this script or PATH\n")
38 sys.exit(1) 38 sys.exit(1)
39 39
40import bb.cache
41import bb.cooker 40import bb.cooker
42import bb.providers 41import bb.providers
43import bb.tinfoil 42import bb.tinfoil
@@ -45,7 +44,7 @@ import bb.tinfoil
45def get_fnlist(bbhandler, pkg_pn, preferred): 44def get_fnlist(bbhandler, pkg_pn, preferred):
46 ''' Get all recipe file names ''' 45 ''' Get all recipe file names '''
47 if preferred: 46 if preferred:
48 (latest_versions, preferred_versions) = bb.providers.findProviders(bbhandler.config_data, bbhandler.cooker.recipecache, pkg_pn) 47 (latest_versions, preferred_versions) = bb.providers.findProviders(bbhandler.config_data, bbhandler.cooker.recipecaches[''], pkg_pn)
49 48
50 fn_list = [] 49 fn_list = []
51 for pn in sorted(pkg_pn): 50 for pn in sorted(pkg_pn):
@@ -58,11 +57,11 @@ def get_fnlist(bbhandler, pkg_pn, preferred):
58 57
59def get_recipesdata(bbhandler, preferred): 58def get_recipesdata(bbhandler, preferred):
60 ''' Get data of all available recipes which have PACKAGECONFIG flags ''' 59 ''' Get data of all available recipes which have PACKAGECONFIG flags '''
61 pkg_pn = bbhandler.cooker.recipecache.pkg_pn 60 pkg_pn = bbhandler.cooker.recipecaches[''].pkg_pn
62 61
63 data_dict = {} 62 data_dict = {}
64 for fn in get_fnlist(bbhandler, pkg_pn, preferred): 63 for fn in get_fnlist(bbhandler, pkg_pn, preferred):
65 data = bb.cache.Cache.loadDataFull(fn, bbhandler.cooker.collection.get_file_appends(fn), bbhandler.config_data) 64 data = bbhandler.parse_recipe_file(fn)
66 flags = data.getVarFlags("PACKAGECONFIG") 65 flags = data.getVarFlags("PACKAGECONFIG")
67 flags.pop('doc', None) 66 flags.pop('doc', None)
68 if flags: 67 if flags: