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/verify-homepage.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/verify-homepage.py')
-rwxr-xr-x | scripts/contrib/verify-homepage.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/contrib/verify-homepage.py b/scripts/contrib/verify-homepage.py index 61a047c40b..0b1450a018 100755 --- a/scripts/contrib/verify-homepage.py +++ b/scripts/contrib/verify-homepage.py | |||
@@ -33,17 +33,17 @@ def wgetHomepage(pn, homepage): | |||
33 | return 0 | 33 | return 0 |
34 | 34 | ||
35 | def verifyHomepage(bbhandler): | 35 | def verifyHomepage(bbhandler): |
36 | pkg_pn = bbhandler.cooker.recipecache.pkg_pn | 36 | pkg_pn = bbhandler.cooker.recipecaches[''].pkg_pn |
37 | pnlist = sorted(pkg_pn) | 37 | pnlist = sorted(pkg_pn) |
38 | count = 0 | 38 | count = 0 |
39 | checked = [] | 39 | checked = [] |
40 | for pn in pnlist: | 40 | for pn in pnlist: |
41 | for fn in pkg_pn[pn]: | 41 | for fn in pkg_pn[pn]: |
42 | # There's no point checking multiple BBCLASSEXTENDed variants of the same recipe | 42 | # There's no point checking multiple BBCLASSEXTENDed variants of the same recipe |
43 | realfn, _ = bb.cache.Cache.virtualfn2realfn(fn) | 43 | realfn, _, _ = bb.cache.virtualfn2realfn(fn) |
44 | if realfn in checked: | 44 | if realfn in checked: |
45 | continue | 45 | continue |
46 | data = bb.cache.Cache.loadDataFull(realfn, bbhandler.cooker.collection.get_file_appends(realfn), bbhandler.config_data) | 46 | data = bbhandler.parse_recipe_file(realfn) |
47 | homepage = data.getVar("HOMEPAGE", True) | 47 | homepage = data.getVar("HOMEPAGE", True) |
48 | if homepage: | 48 | if homepage: |
49 | try: | 49 | try: |