diff options
-rw-r--r-- | meta/classes/native.bbclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass index 5ca5c95b4d..1f8139bec8 100644 --- a/meta/classes/native.bbclass +++ b/meta/classes/native.bbclass | |||
@@ -151,12 +151,13 @@ python native_virtclass_handler () { | |||
151 | map_dependencies("RREPLACES", e.data, pkg) | 151 | map_dependencies("RREPLACES", e.data, pkg) |
152 | 152 | ||
153 | provides = e.data.getVar("PROVIDES", True) | 153 | provides = e.data.getVar("PROVIDES", True) |
154 | nprovides = [] | ||
154 | for prov in provides.split(): | 155 | for prov in provides.split(): |
155 | if prov.find(pn) != -1: | 156 | if prov.find(pn) != -1: |
156 | continue | 157 | continue |
157 | if not prov.endswith("-native"): | 158 | if not prov.endswith("-native"): |
158 | provides = provides.replace(prov, prov + "-native") | 159 | nprovides.append(prov.replace(prov, prov + "-native")) |
159 | e.data.setVar("PROVIDES", provides) | 160 | e.data.setVar("PROVIDES", ' '.join(nprovides)) |
160 | 161 | ||
161 | e.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + ":virtclass-native") | 162 | e.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + ":virtclass-native") |
162 | } | 163 | } |