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 | f1333958ddf7d133437baeddae42781fdc03a7c7 (patch) | |
tree | ec217af6fec5440e650a51af59f02b3c3c1cb5d5 /scripts | |
parent | b39d1c6842a970d0d6794ceee5392ddc3e78cec0 (diff) | |
download | poky-f1333958ddf7d133437baeddae42781fdc03a7c7.tar.gz |
python3: add python3-modules-native to RPROVIDES for python3-native
Also clean up the logic in the script to be more Pythonic.
(From OE-Core rev: fae66dd3633aa8a6aa633fcfd7c4b9a728dee7a4)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/contrib/python/generate-manifest-3.5.py | 10 |
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: | |||
87 | # | 87 | # |
88 | 88 | ||
89 | if self.isNative: | 89 | if self.isNative: |
90 | rprovideLine = 'RPROVIDES+="' | 90 | pkglist = [] |
91 | for name in sorted(self.packages): | 91 | for name in ['${PN}-modules'] + sorted(self.packages): |
92 | rprovideLine += "%s-native " % name.replace( '${PN}', 'python3' ) | 92 | pkglist.append('%s-native' % name.replace('${PN}', 'python3')) |
93 | rprovideLine += '"' | ||
94 | 93 | ||
95 | self.out( rprovideLine ) | 94 | self.out('RPROVIDES += "%s"' % " ".join(pkglist)) |
96 | self.out( "" ) | ||
97 | return | 95 | return |
98 | 96 | ||
99 | # | 97 | # |