diff options
Diffstat (limited to 'meta/classes/toaster.bbclass')
-rw-r--r-- | meta/classes/toaster.bbclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass index 9518ddf7a4..03c4f3a930 100644 --- a/meta/classes/toaster.bbclass +++ b/meta/classes/toaster.bbclass | |||
@@ -3,7 +3,7 @@ | |||
3 | # | 3 | # |
4 | # Copyright (C) 2013 Intel Corporation | 4 | # Copyright (C) 2013 Intel Corporation |
5 | # | 5 | # |
6 | # Released under the MIT license (see COPYING.MIT) | 6 | # SPDX-License-Identifier: MIT |
7 | # | 7 | # |
8 | # This bbclass is designed to extract data used by OE-Core during the build process, | 8 | # This bbclass is designed to extract data used by OE-Core during the build process, |
9 | # for recording in the Toaster system. | 9 | # for recording in the Toaster system. |
@@ -101,12 +101,12 @@ 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 == 'FILES_INFO': | 109 | if kn.startswith('FILES_INFO'): |
110 | pkgdata[kn] = json.loads(kv) | 110 | pkgdata[kn] = json.loads(kv) |
111 | 111 | ||
112 | except ValueError: | 112 | except ValueError: |