summaryrefslogtreecommitdiffstats
path: root/scripts/oe-pkgdata-util
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-16 16:01:06 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-17 09:53:04 +0100
commitdd6b55d70c0616e69ecc7366650cd0f7e1678bd8 (patch)
treed00f23f07f237d833ee7e11df584fa17dd7c41cc /scripts/oe-pkgdata-util
parent12e1f9815d7f0bf6dbe22e8e9cff6d1bda9241ce (diff)
downloadpoky-dd6b55d70c0616e69ecc7366650cd0f7e1678bd8.tar.gz
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>
Diffstat (limited to 'scripts/oe-pkgdata-util')
-rwxr-xr-xscripts/oe-pkgdata-util4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/oe-pkgdata-util b/scripts/oe-pkgdata-util
index 94d44002ab..ffa3850b8b 100755
--- a/scripts/oe-pkgdata-util
+++ b/scripts/oe-pkgdata-util
@@ -431,7 +431,7 @@ def list_pkg_files(args):
431 for line in f: 431 for line in f:
432 if line.startswith('FILES_INFO:'): 432 if line.startswith('FILES_INFO:'):
433 found = True 433 found = True
434 val = line.split(':', 1)[1].strip() 434 val = line.split(': ', 1)[1].strip()
435 dictval = json.loads(val) 435 dictval = json.loads(val)
436 if long: 436 if long:
437 width = max(map(len, dictval), default=0) 437 width = max(map(len, dictval), default=0)
@@ -500,7 +500,7 @@ def find_path(args):
500 with open(os.path.join(root,fn)) as f: 500 with open(os.path.join(root,fn)) as f:
501 for line in f: 501 for line in f:
502 if line.startswith('FILES_INFO:'): 502 if line.startswith('FILES_INFO:'):
503 val = line.split(':', 1)[1].strip() 503 val = line.split(': ', 1)[1].strip()
504 dictval = json.loads(val) 504 dictval = json.loads(val)
505 for fullpth in dictval.keys(): 505 for fullpth in dictval.keys():
506 if fnmatch.fnmatchcase(fullpth, args.targetpath): 506 if fnmatch.fnmatchcase(fullpth, args.targetpath):