mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
package/scripts: Fix FILES_INFO handling
There is a long standing bug where FILES_INFO isn't written into pkgdata with a package suffix. This means if the files are read into the datastore as intended, the last one "wins". Fix this to work as intended. Most of the call sites using the data need to be updated to handle this and the overrides change correctly. Also fix some other problematic references noticed along the way. (From OE-Core rev: a1190903e0a61a12c9854c96af918ae8d12c6327) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -808,11 +808,11 @@ def package_qa_check_rdepends(pkg, pkgdest, skip, taskdeps, packages, d):
|
||||
# For Saving the FILERPROVIDES, RPROVIDES and FILES_INFO
|
||||
rdep_data = oe.packagedata.read_subpkgdata(rdep, d)
|
||||
for key in rdep_data:
|
||||
if key.startswith("FILERPROVIDES_") or key.startswith("RPROVIDES:"):
|
||||
if key.startswith("FILERPROVIDES:") or key.startswith("RPROVIDES:"):
|
||||
for subkey in bb.utils.explode_deps(rdep_data[key]):
|
||||
filerdepends.pop(subkey,None)
|
||||
# Add the files list to the rprovides
|
||||
if key == "FILES_INFO":
|
||||
if key.startswith("FILES_INFO:"):
|
||||
# Use eval() to make it as a dict
|
||||
for subkey in eval(rdep_data[key]):
|
||||
filerdepends.pop(subkey,None)
|
||||
|
||||
Reference in New Issue
Block a user