diff options
| author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-08-31 13:48:06 +1200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-03 23:45:52 +0100 |
| commit | 4a5aa7ea4d07c2c90a1654b174873abb018acc67 (patch) | |
| tree | d59cf7287403ae74c8327b4308a1108b134a642f /scripts/contrib/devtool-stress.py | |
| parent | 1100af93cb07caf24d568c039d52fb0c80714c30 (diff) | |
| download | poky-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/devtool-stress.py')
| -rwxr-xr-x | scripts/contrib/devtool-stress.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/contrib/devtool-stress.py b/scripts/contrib/devtool-stress.py index 7ba0984238..d555c51a65 100755 --- a/scripts/contrib/devtool-stress.py +++ b/scripts/contrib/devtool-stress.py | |||
| @@ -43,15 +43,15 @@ def select_recipes(args): | |||
| 43 | tinfoil = bb.tinfoil.Tinfoil() | 43 | tinfoil = bb.tinfoil.Tinfoil() |
| 44 | tinfoil.prepare(False) | 44 | tinfoil.prepare(False) |
| 45 | 45 | ||
| 46 | pkg_pn = tinfoil.cooker.recipecache.pkg_pn | 46 | pkg_pn = tinfoil.cooker.recipecaches[''].pkg_pn |
| 47 | (latest_versions, preferred_versions) = bb.providers.findProviders(tinfoil.config_data, tinfoil.cooker.recipecache, pkg_pn) | 47 | (latest_versions, preferred_versions) = bb.providers.findProviders(tinfoil.config_data, tinfoil.cooker.recipecaches[''], pkg_pn) |
| 48 | 48 | ||
| 49 | skip_classes = args.skip_classes.split(',') | 49 | skip_classes = args.skip_classes.split(',') |
| 50 | 50 | ||
| 51 | recipelist = [] | 51 | recipelist = [] |
| 52 | for pn in sorted(pkg_pn): | 52 | for pn in sorted(pkg_pn): |
| 53 | pref = preferred_versions[pn] | 53 | pref = preferred_versions[pn] |
| 54 | inherits = [os.path.splitext(os.path.basename(f))[0] for f in tinfoil.cooker.recipecache.inherits[pref[1]]] | 54 | inherits = [os.path.splitext(os.path.basename(f))[0] for f in tinfoil.cooker.recipecaches[''].inherits[pref[1]]] |
| 55 | for cls in skip_classes: | 55 | for cls in skip_classes: |
| 56 | if cls in inherits: | 56 | if cls in inherits: |
| 57 | break | 57 | break |
