summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-19 23:00:15 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-21 10:07:40 +0000
commit154e69f118ae7ce0db39cb99a90e51008f80543e (patch)
tree3ea70ca2b48c442bc803bc1964c8785966d7a3b7 /meta/classes
parentc71a9c89e3c23ba1f1eec06c0183ee1d7148041d (diff)
downloadpoky-154e69f118ae7ce0db39cb99a90e51008f80543e.tar.gz
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>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/toaster.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass
index dd5c7f224b..f365c09142 100644
--- a/meta/classes/toaster.bbclass
+++ b/meta/classes/toaster.bbclass
@@ -101,11 +101,11 @@ def _toaster_load_pkgdatafile(dirpath, filepath):
101 for line in fin: 101 for line in fin:
102 try: 102 try:
103 kn, kv = line.strip().split(": ", 1) 103 kn, kv = line.strip().split(": ", 1)
104 m = re.match(r"^PKG_([^A-Z:]*)", kn) 104 m = re.match(r"^PKG:([^A-Z:]*)", kn)
105 if m: 105 if m:
106 pkgdata['OPKGN'] = m.group(1) 106 pkgdata['OPKGN'] = m.group(1)
107 kn = "_".join([x for x in kn.split("_") if x.isupper()]) 107 kn = kn.split(":")[0]
108 pkgdata[kn] = kv.strip() 108 pkgdata[kn] = kv
109 if kn.startswith('FILES_INFO'): 109 if kn.startswith('FILES_INFO'):
110 pkgdata[kn] = json.loads(kv) 110 pkgdata[kn] = json.loads(kv)
111 111