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/python | |
| parent | d554d90da3bd4bc5812c4242be8fa359a21932ef (diff) | |
| download | poky-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/python')
| -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 8c3655d395..dce465abff 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: | |||
| 74 | # | 74 | # |
| 75 | 75 | ||
| 76 | if self.isNative: | 76 | if self.isNative: |
| 77 | rprovideLine = 'RPROVIDES+="' | 77 | pkglist = [] |
| 78 | for name in sorted(self.packages): | 78 | for name in ['${PN}-modules'] + sorted(self.packages): |
| 79 | rprovideLine += "%s-native " % name.replace( '${PN}', 'python' ) | 79 | pkglist.append('%s-native' % name.replace('${PN}', 'python')) |
| 80 | rprovideLine += '"' | ||
| 81 | 80 | ||
| 82 | self.out( rprovideLine ) | 81 | self.out('RPROVIDES += "%s"' % " ".join(pkglist)) |
| 83 | self.out( "" ) | ||
| 84 | return | 82 | return |
| 85 | 83 | ||
| 86 | # | 84 | # |
