mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 21:32:12 +02: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:
@@ -431,7 +431,7 @@ def list_pkg_files(args):
|
||||
for line in f:
|
||||
if line.startswith('FILES_INFO:'):
|
||||
found = True
|
||||
val = line.split(':', 1)[1].strip()
|
||||
val = line.split(': ', 1)[1].strip()
|
||||
dictval = json.loads(val)
|
||||
if long:
|
||||
width = max(map(len, dictval), default=0)
|
||||
@@ -500,7 +500,7 @@ def find_path(args):
|
||||
with open(os.path.join(root,fn)) as f:
|
||||
for line in f:
|
||||
if line.startswith('FILES_INFO:'):
|
||||
val = line.split(':', 1)[1].strip()
|
||||
val = line.split(': ', 1)[1].strip()
|
||||
dictval = json.loads(val)
|
||||
for fullpth in dictval.keys():
|
||||
if fnmatch.fnmatchcase(fullpth, args.targetpath):
|
||||
|
||||
Reference in New Issue
Block a user