diff options
Diffstat (limited to 'meta/classes-global/insane.bbclass')
-rw-r--r-- | meta/classes-global/insane.bbclass | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index 72fcf6b254..d625fd82f7 100644 --- a/meta/classes-global/insane.bbclass +++ b/meta/classes-global/insane.bbclass | |||
@@ -904,13 +904,7 @@ def package_qa_check_rdepends(pkg, pkgdest, skip, taskdeps, packages, d): | |||
904 | if rdep_data and 'PN' in rdep_data and rdep_data['PN'] in taskdeps: | 904 | if rdep_data and 'PN' in rdep_data and rdep_data['PN'] in taskdeps: |
905 | continue | 905 | continue |
906 | if not rdep_data or not 'PN' in rdep_data: | 906 | if not rdep_data or not 'PN' in rdep_data: |
907 | pkgdata_dir = d.getVar("PKGDATA_DIR") | 907 | for _, rdep_data in oe.packagedata.foreach_runtime_provider_pkgdata(d, rdepend): |
908 | try: | ||
909 | possibles = os.listdir("%s/runtime-rprovides/%s/" % (pkgdata_dir, rdepend)) | ||
910 | except OSError: | ||
911 | possibles = [] | ||
912 | for p in possibles: | ||
913 | rdep_data = oe.packagedata.read_subpkgdata(p, d) | ||
914 | if rdep_data and 'PN' in rdep_data and rdep_data['PN'] in taskdeps: | 908 | if rdep_data and 'PN' in rdep_data and rdep_data['PN'] in taskdeps: |
915 | break | 909 | break |
916 | if rdep_data and 'PN' in rdep_data and rdep_data['PN'] in taskdeps: | 910 | if rdep_data and 'PN' in rdep_data and rdep_data['PN'] in taskdeps: |
@@ -958,17 +952,17 @@ def package_qa_check_rdepends(pkg, pkgdest, skip, taskdeps, packages, d): | |||
958 | # perl | 952 | # perl |
959 | filerdepends.pop(rdep,None) | 953 | filerdepends.pop(rdep,None) |
960 | 954 | ||
961 | # For Saving the FILERPROVIDES, RPROVIDES and FILES_INFO | 955 | for _, rdep_data in oe.packagedata.foreach_runtime_provider_pkgdata(d, rdep, True): |
962 | rdep_data = oe.packagedata.read_subpkgdata(rdep, d) | 956 | for key in rdep_data: |
963 | for key in rdep_data: | 957 | if key.startswith("FILERPROVIDES:") or key.startswith("RPROVIDES:"): |
964 | if key.startswith("FILERPROVIDES:") or key.startswith("RPROVIDES:"): | 958 | for subkey in bb.utils.explode_deps(rdep_data[key]): |
965 | for subkey in bb.utils.explode_deps(rdep_data[key]): | 959 | filerdepends.pop(subkey,None) |
966 | filerdepends.pop(subkey,None) | 960 | # Add the files list to the rprovides |
967 | # Add the files list to the rprovides | 961 | if key.startswith("FILES_INFO:"): |
968 | if key.startswith("FILES_INFO:"): | 962 | # Use eval() to make it as a dict |
969 | # Use eval() to make it as a dict | 963 | for subkey in eval(rdep_data[key]): |
970 | for subkey in eval(rdep_data[key]): | 964 | filerdepends.pop(subkey,None) |
971 | filerdepends.pop(subkey,None) | 965 | |
972 | if not filerdepends: | 966 | if not filerdepends: |
973 | # Break if all the file rdepends are met | 967 | # Break if all the file rdepends are met |
974 | break | 968 | break |