summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/packagedata.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oe/packagedata.py')
-rw-r--r--meta/lib/oe/packagedata.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/meta/lib/oe/packagedata.py b/meta/lib/oe/packagedata.py
index 212f048bc6..205800a407 100644
--- a/meta/lib/oe/packagedata.py
+++ b/meta/lib/oe/packagedata.py
@@ -108,3 +108,18 @@ def recipename(pkg, d):
108 """Return the recipe name for the given binary package name.""" 108 """Return the recipe name for the given binary package name."""
109 109
110 return pkgmap(d).get(pkg) 110 return pkgmap(d).get(pkg)
111
112def foreach_runtime_provider_pkgdata(d, rdep, include_rdep=False):
113 pkgdata_dir = d.getVar("PKGDATA_DIR")
114 possibles = set()
115 try:
116 possibles |= set(os.listdir("%s/runtime-rprovides/%s/" % (pkgdata_dir, rdep)))
117 except OSError:
118 pass
119
120 if include_rdep:
121 possibles.add(rdep)
122
123 for p in sorted(list(possibles)):
124 rdep_data = read_subpkgdata(p, d)
125 yield p, rdep_data