mirror of
https://git.yoctoproject.org/poky
synced 2026-02-07 17:26:36 +01:00
python3: support recommends in manifest
Add support for runtime recommends along with runtime depends to the manifest. (From OE-Core rev: 16cc9a2ca559d978c6d0e648c18c297255b69dcc) 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
53f4ad18df
commit
2e060e2df7
@@ -229,7 +229,7 @@ python(){
|
||||
|
||||
newpackages=[]
|
||||
for key in python_manifest:
|
||||
pypackage= pn + '-' + key
|
||||
pypackage = pn + '-' + key
|
||||
|
||||
if pypackage not in packages:
|
||||
# We need to prepend, otherwise python-misc gets everything
|
||||
@@ -249,8 +249,14 @@ python(){
|
||||
for value in python_manifest[key]['rdepends']:
|
||||
# Make it work with or without $PN
|
||||
if '${PN}' in value:
|
||||
value=value.split('-')[1]
|
||||
value=value.split('-', 1)[1]
|
||||
d.appendVar('RDEPENDS_' + pypackage, ' ' + pn + '-' + value)
|
||||
|
||||
for value in python_manifest[key].get('rrecommends', ()):
|
||||
if '${PN}' in value:
|
||||
value=value.split('-', 1)[1]
|
||||
d.appendVar('RRECOMMENDS_' + pypackage, ' ' + pn + '-' + value)
|
||||
|
||||
d.setVar('SUMMARY_' + pypackage, python_manifest[key]['summary'])
|
||||
|
||||
# Prepending so to avoid python-misc getting everything
|
||||
|
||||
Reference in New Issue
Block a user