summaryrefslogtreecommitdiffstats
path: root/scripts/contrib
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2017-06-02 17:36:24 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-06 19:49:55 +0100
commitfae66dd3633aa8a6aa633fcfd7c4b9a728dee7a4 (patch)
treee83aa5aa4bded82caa8f1dcd7ff94afccfaa19cb /scripts/contrib
parente5ac43e1b549e637f1820a03dd0a633fbecd395c (diff)
downloadopenembedded-core-fae66dd3633aa8a6aa633fcfd7c4b9a728dee7a4.tar.gz
openembedded-core-fae66dd3633aa8a6aa633fcfd7c4b9a728dee7a4.tar.bz2
openembedded-core-fae66dd3633aa8a6aa633fcfd7c4b9a728dee7a4.zip
python3: add python3-modules-native to RPROVIDES for python3-native
Also clean up the logic in the script to be more Pythonic. Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/contrib')
-rwxr-xr-xscripts/contrib/python/generate-manifest-3.5.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/scripts/contrib/python/generate-manifest-3.5.py b/scripts/contrib/python/generate-manifest-3.5.py
index a8b5059a4f..0de8fedbc2 100755
--- a/scripts/contrib/python/generate-manifest-3.5.py
+++ b/scripts/contrib/python/generate-manifest-3.5.py
@@ -87,13 +87,11 @@ class MakefileMaker:
#
if self.isNative:
- rprovideLine = 'RPROVIDES+="'
- for name in sorted(self.packages):
- rprovideLine += "%s-native " % name.replace( '${PN}', 'python3' )
- rprovideLine += '"'
+ pkglist = []
+ for name in ['${PN}-modules'] + sorted(self.packages):
+ pkglist.append('%s-native' % name.replace('${PN}', 'python3'))
- self.out( rprovideLine )
- self.out( "" )
+ self.out('RPROVIDES += "%s"' % " ".join(pkglist))
return
#