mirror of
https://git.yoctoproject.org/poky
synced 2026-04-03 02:02:21 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
b39d1c6842
commit
f1333958dd
@@ -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
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user