diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-16 16:01:06 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-17 09:53:04 +0100 |
commit | dd6b55d70c0616e69ecc7366650cd0f7e1678bd8 (patch) | |
tree | d00f23f07f237d833ee7e11df584fa17dd7c41cc /scripts/lib/devtool | |
parent | 12e1f9815d7f0bf6dbe22e8e9cff6d1bda9241ce (diff) | |
download | poky-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/lib/devtool')
-rw-r--r-- | scripts/lib/devtool/search.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/lib/devtool/search.py b/scripts/lib/devtool/search.py index d81cdd876f..70b81cac5e 100644 --- a/scripts/lib/devtool/search.py +++ b/scripts/lib/devtool/search.py | |||
@@ -62,10 +62,11 @@ def search(args, config, basepath, workspace): | |||
62 | with open(os.path.join(pkgdata_dir, 'runtime', pkg), 'r') as f: | 62 | with open(os.path.join(pkgdata_dir, 'runtime', pkg), 'r') as f: |
63 | for line in f: | 63 | for line in f: |
64 | if ': ' in line: | 64 | if ': ' in line: |
65 | splitline = line.split(':', 1) | 65 | splitline = line.split(': ', 1) |
66 | key = splitline[0] | 66 | key = splitline[0] |
67 | value = splitline[1].strip() | 67 | value = splitline[1].strip() |
68 | if key in ['PKG:%s' % pkg, 'DESCRIPTION', 'FILES_INFO'] or key.startswith('FILERPROVIDES_'): | 68 | key = key.replace(":" + pkg, "") |
69 | if key in ['PKG', 'DESCRIPTION', 'FILES_INFO', 'FILERPROVIDES']: | ||
69 | if keyword_rc.search(value): | 70 | if keyword_rc.search(value): |
70 | match = True | 71 | match = True |
71 | break | 72 | break |