mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-01 13:58:04 +00:00
toaster: Fix broken overrides usage
This fixes data corruption issues with toaster where image data wasn't being processed correct. (From OE-Core rev: 95cc2d041ad651cfb81b2e55251acf1b86f9ddfc) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
c71a9c89e3
commit
154e69f118
|
|
@ -101,11 +101,11 @@ def _toaster_load_pkgdatafile(dirpath, filepath):
|
|||
for line in fin:
|
||||
try:
|
||||
kn, kv = line.strip().split(": ", 1)
|
||||
m = re.match(r"^PKG_([^A-Z:]*)", kn)
|
||||
m = re.match(r"^PKG:([^A-Z:]*)", kn)
|
||||
if m:
|
||||
pkgdata['OPKGN'] = m.group(1)
|
||||
kn = "_".join([x for x in kn.split("_") if x.isupper()])
|
||||
pkgdata[kn] = kv.strip()
|
||||
kn = kn.split(":")[0]
|
||||
pkgdata[kn] = kv
|
||||
if kn.startswith('FILES_INFO'):
|
||||
pkgdata[kn] = json.loads(kv)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user