diff options
author | Ross Burton <ross.burton@intel.com> | 2017-06-02 17:36:24 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-06 19:52:26 +0100 |
commit | b39d1c6842a970d0d6794ceee5392ddc3e78cec0 (patch) | |
tree | 628657b306e8d26109c585a823dc84cbcdaea231 /scripts/contrib | |
parent | d554d90da3bd4bc5812c4242be8fa359a21932ef (diff) | |
download | openembedded-core-contrib-b39d1c6842a970d0d6794ceee5392ddc3e78cec0.tar.gz |
python: add python-modules-native to RPROVIDES for python-native
Also clean up the logic in the script to be more Pythonic.
(From OE-Core rev: e5ac43e1b549e637f1820a03dd0a633fbecd395c)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/contrib')
-rwxr-xr-x | scripts/contrib/python/generate-manifest-2.7.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/scripts/contrib/python/generate-manifest-2.7.py b/scripts/contrib/python/generate-manifest-2.7.py index 8c3655d395a..dce465abffd 100755 --- a/scripts/contrib/python/generate-manifest-2.7.py +++ b/scripts/contrib/python/generate-manifest-2.7.py @@ -74,13 +74,11 @@ class MakefileMaker: # if self.isNative: - rprovideLine = 'RPROVIDES+="' - for name in sorted(self.packages): - rprovideLine += "%s-native " % name.replace( '${PN}', 'python' ) - rprovideLine += '"' + pkglist = [] + for name in ['${PN}-modules'] + sorted(self.packages): + pkglist.append('%s-native' % name.replace('${PN}', 'python')) - self.out( rprovideLine ) - self.out( "" ) + self.out('RPROVIDES += "%s"' % " ".join(pkglist)) return # |