diff options
-rw-r--r-- | meta/classes/native.bbclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass index 1f8139bec8..71b05720f2 100644 --- a/meta/classes/native.bbclass +++ b/meta/classes/native.bbclass | |||
@@ -154,9 +154,11 @@ python native_virtclass_handler () { | |||
154 | nprovides = [] | 154 | nprovides = [] |
155 | for prov in provides.split(): | 155 | for prov in provides.split(): |
156 | if prov.find(pn) != -1: | 156 | if prov.find(pn) != -1: |
157 | continue | 157 | nprovides.append(prov) |
158 | if not prov.endswith("-native"): | 158 | elif not prov.endswith("-native"): |
159 | nprovides.append(prov.replace(prov, prov + "-native")) | 159 | nprovides.append(prov.replace(prov, prov + "-native")) |
160 | else: | ||
161 | nprovides.append(prov) | ||
160 | e.data.setVar("PROVIDES", ' '.join(nprovides)) | 162 | e.data.setVar("PROVIDES", ' '.join(nprovides)) |
161 | 163 | ||
162 | e.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + ":virtclass-native") | 164 | e.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + ":virtclass-native") |